ClickHouse/programs
BohuTANG f48fdda678
Enhanced compatibility with native mysql-connector-java(JDBC) (#10021)
* Skip the `/* comments */ SELECT @@variables ...` from mysql-connector-java setup for MySQL Handler #9336

mysql-connector setup query:
/* mysql-connector-java-5.1.38 ( Revision: ${revinfo.commit} ) */SELECT  @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_connection, @@character_set_results AS character_set_results, @@character_set_server AS character_set_server, @@init_connect AS init_connect, @@interactive_timeout AS interactive_timeout...

ClickHouse side Error:
{} <Error> executeQuery: Code: 62, e.displayText() = DB::Exception: Syntax error: failed at position 74: @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_conn. Expected one of: CAST, NULL...

Client side Exception:
java.sql.SQLException: Syntax error: failed at position 74: @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_conn. Expected one of: CAST...

* add repalce 'SHOW VARIABLES' for mysql-connector-java-5.1.34 #9336

* Add java client(JDBC) integration test to test_mysql_protocol

* shift out java tests from dbms

* Update MySQLHandler.cpp

* Update MySQLHandler.cpp

* test_mysql_protocol: add Test.java exit code 1 when expection

Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2020-04-09 00:52:19 +03:00
..
benchmark Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
client Fix "check style" tool 2020-04-06 02:57:24 +03:00
compressor Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
copier Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
extract-from-config Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
format Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
local Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
obfuscator Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
odbc-bridge Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
server Enhanced compatibility with native mysql-connector-java(JDBC) (#10021) 2020-04-09 00:52:19 +03:00
clickhouse-split-helper Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
CMakeLists.txt Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
config_tools.h.in Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
main.cpp Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00