fix: fix case issue
This commit is contained in:
parent
5b018f399a
commit
5adaf57c59
|
@ -184,17 +184,17 @@ class TDTestCase:
|
||||||
|
|
||||||
#query: string Functions
|
#query: string Functions
|
||||||
|
|
||||||
querystmt3=conn.statement("select CHAR_LENGTH(?) from log ")
|
querystmt9=conn.statement("select CHAR_LENGTH(?) from log ")
|
||||||
queryparam3=new_bind_params(1)
|
queryparam9=new_bind_params(1)
|
||||||
print(type(queryparam3))
|
print(type(queryparam9))
|
||||||
queryparam3[0].binary('中文字符')
|
queryparam9[0].binary('中文字符')
|
||||||
querystmt3.bind_param(queryparam3)
|
querystmt9.bind_param(queryparam9)
|
||||||
querystmt3.execute()
|
querystmt9.execute()
|
||||||
result3=querystmt3.use_result()
|
result9=querystmt9.use_result()
|
||||||
rows3=result3.fetch_all()
|
rows9=result9.fetch_all()
|
||||||
print("4",rows3)
|
print("9",rows9)
|
||||||
assert rows3[0][0] == 12, 'fourth case is failed'
|
assert rows9[0][0] == 12, 'fourth case is failed'
|
||||||
assert rows3[1][0] == 12, 'fourth case is failed'
|
assert rows9[1][0] == 12, 'fourth case is failed'
|
||||||
|
|
||||||
# #query: conversion Functions
|
# #query: conversion Functions
|
||||||
|
|
||||||
|
@ -259,4 +259,4 @@ class TDTestCase:
|
||||||
# add case with filename
|
# add case with filename
|
||||||
#
|
#
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
tdCases.addWindows(__file__, TDTestCase())
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
tdCases.addLinux(__file__, TDTestCase())
|
||||||
|
|
Loading…
Reference in New Issue