yuqi1129 / schema

A SQL driver framework that supports multiple data source
101 stars 40 forks source link

无法使用mysql的jdbc驱动连接 #14

Open sd4324530 opened 2 years ago

sd4324530 commented 2 years ago

mysql-protocol这个模块启动后,客户端使用jdbc驱动进行连接,建立连接出现报错,分析是建立连接时,jdbc包会发送SET NAMES utf8命令,解析异常报错

yuqi1129 commented 2 years ago

I have not test the connection use JDBC Driver and would not support the syntax SET NAMES utf8, Feel free to to implement this sentence.

qq1002517 commented 2 years ago

楼上的搞定给分享一下

yuqi1129 commented 2 years ago

Change the Parser.jj and support SET NAMES utf8 sentence. that is enough, There is no need to implement it. you may need to be familiar with JavaCC