fix: -p must with single quotes

This commit is contained in:
Alex Duan 2025-03-14 12:48:27 +08:00
parent 993015a8d5
commit fd8177ad94
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
abcdefghigklmnopqrstuvwxyz@ABCDEFGHIGKLMNOPQRSTUVWXYZ123456789!@#$%^&*()-_+=[]{}:;><?|~,.AAAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDEEEEEEEEEAAAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDEEEEEEEEEAAAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDEEEEEEEEEAAAAAAAAAAAABBBBEND abcdefghigklmnopqrstuvwxyz@ABCDEFGHIGKLMNOPQRSTUVWXYZ123456789!@#$%^&*()-_+=[]{}:;><?|~,.AAAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDEEEEEEEEEAAAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDEEEEEEEEEAAAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDEEEEEEEEEAAAAAAAAAAAABEND

View File

@ -227,7 +227,7 @@ class TDTestCase(TBase):
tdSql.execute(sql) tdSql.execute(sql)
cmds = [ cmds = [
f"-u{user} -p{pwd} -s 'show databases;'", # command pass f"-u{user} -p'{pwd}' -s 'show databases;'", # command pass
f"-u{user} -p < {pwdFile} -s 'show databases;'" # input pass f"-u{user} -p < {pwdFile} -s 'show databases;'" # input pass
] ]

View File

@ -228,7 +228,7 @@ class TDTestCase(TBase):
tdSql.execute(sql) tdSql.execute(sql)
cmds = [ cmds = [
f"-u{user} -p{pwd} -D test -o {tmpdir}", # command pass f"-u{user} -p'{pwd}' -D test -o {tmpdir}", # command pass
f"-u{user} -p < {pwdFile} -D test -o {tmpdir}" # input pass f"-u{user} -p < {pwdFile} -D test -o {tmpdir}" # input pass
] ]