Skip to content

Commit

Permalink
add connection string test with multibyte database name
Browse files Browse the repository at this point in the history
Signed-off-by: Tanzeel Khan <[email protected]>
  • Loading branch information
tanscorpio7 committed Sep 25, 2024
1 parent 1566885 commit bc100b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test/python/expected/pyodbc/TestAuth.out
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ py_auth#!#database|-|test1 SELECT 1
~~ERROR (Code: 911)~~
~~ERROR (Message: [08004] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]database "test1 select 1" does not exist (911) (SQLDriverConnect))~~


CREATE DATABASE ["龙漫远龍漫😃😄漫遠.¢£€¥"]
py_auth#!#database|-|"龙漫远龍漫😃😄漫遠.¢£€¥"
~~SUCCESS~~
DROP DATABASE ["龙漫远龍漫😃😄漫遠.¢£€¥"]
6 changes: 5 additions & 1 deletion test/python/input/authentication/TestAuth.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ py_auth#!#password|-|11111111111111111111111111111111111111111111111111111111111
py_auth#!#others|-|packetSize=0
py_auth#!#others|-|packetSize=-1
py_auth#!#others|-|packetSize=4096
py_auth#!#database|-|test1 SELECT 1
py_auth#!#database|-|test1 SELECT 1

CREATE DATABASE ["龙漫远龍漫😃😄漫遠.¢£€¥"]
py_auth#!#database|-|"龙漫远龍漫😃😄漫遠.¢£€¥"
DROP DATABASE ["龙漫远龍漫😃😄漫遠.¢£€¥"]

0 comments on commit bc100b0

Please sign in to comment.