Просмотр исходного кода

Fix 214 bugs (#222)

* update hsql version and test cases.

* update coloum ref.

* update insert test case.

* update test case.

* update test case.

* revert input type.
Yang Shuang 1 год назад
Родитель
Сommit
5310b31621

+ 1 - 1
script/download.sh

@@ -1 +1 @@
-wget https://github.com/DTC8/sql-parser/releases/download/hsql.plus-49e1c16/hsql.plus-49e1c16.tar.gz -O hsql.tar.gz
+wget https://github.com/DTC8/sql-parser/releases/download/hsql.plus-1a5b3f5/hsql.plus-1a5b3f5.tar.gz -O hsql.tar.gz

BIN
src/libs/hsql/libs/libsqlparser.a


BIN
src/libs/hsql/libs/libsqlparser.so


+ 3 - 7
tests/test_dtcd_cache_only.py

@@ -53,9 +53,9 @@ def test_update():
     #rowsaffected = cursor.execute(sql)
     #assert rowsaffected == 1
 
-    #sql = "update opensource set name = `Lee` where uid = 1"
-    #rowsaffected = cursor.execute(sql)
-    #assert rowsaffected == 0
+    sql = "update opensource set name = `Lee` where uid = 1"
+    rowsaffected = cursor.execute(sql)
+    assert rowsaffected == 0
 
     #sql = "update opensource set name = \"Lee4\" where uid = '1'"
     #rowsaffected = cursor.execute(sql)
@@ -224,10 +224,6 @@ def test_insert_automated_conversion():
     insert = cursor.execute(sql)
     assert insert == 0
 
-    sql = "insert into opensource(uid,name,city,sex,age) values(1, 'jack', Shanghai, 1, '18a')"
-    insert = cursor.execute(sql)
-    assert insert == 0
-
     db.commit()
 
     db.close()