瀏覽代碼

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 年之前
父節點
當前提交
5310b31621
共有 4 個文件被更改,包括 4 次插入8 次删除
  1. 1 1
      script/download.sh
  2. 二進制
      src/libs/hsql/libs/libsqlparser.a
  3. 二進制
      src/libs/hsql/libs/libsqlparser.so
  4. 3 7
      tests/test_dtcd_cache_only.py

+ 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

二進制
src/libs/hsql/libs/libsqlparser.a


二進制
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()