More tests [#CLICKHOUSE-3861]

This commit is contained in:
Alexey Milovidov 2018-08-01 00:24:49 +03:00 committed by alexey-milovidov
parent 0f25e8277c
commit 1cdbf16837
2 changed files with 6 additions and 0 deletions

View File

@ -34,3 +34,6 @@ Code: 404, e.displayText() = DB::Exception: ODBC connection string has forbidden
Code: 404, e.displayText() = DB::Exception: ODBC connection string has forbidden parameter, e.what() = DB::Exception
Code: 404, e.displayText() = DB::Exception: Duplicate parameter found in ODBC connection string, e.what() = DB::Exception
Code: 404, e.displayText() = DB::Exception: ODBC connection string parameter name doesn't begin with valid identifier character, e.what() = DB::Exception
DSN={myconnection};
DSN={myconnection};DATABASE={my_db};HOST={127.0.0.1};PORT={5432};PWD={password};UID={username};
DSN={MSSQL};PWD={test};UID={test};

View File

@ -36,3 +36,6 @@
./validate-odbc-connection-string 'abc={ } ; dsn = {hello world} ;_= {...}; Driver=x' 2>&1
./validate-odbc-connection-string 'abc={}; abc=def' 2>&1
./validate-odbc-connection-string 'abc={};;' 2>&1
./validate-odbc-connection-string 'DSN=myconnection' 2>&1
./validate-odbc-connection-string 'DSN=myconnection;UID=username;PWD=password;HOST=127.0.0.1;PORT=5432;DATABASE=my_db' 2>&1
./validate-odbc-connection-string 'DSN=MSSQL;UID=test;PWD=test' 2>&1