瀏覽代碼

增加部分GET支持

xx 2 年之前
父節點
當前提交
cd8beae98a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/mysql.cpp

+ 1 - 1
src/mysql.cpp

@@ -622,7 +622,7 @@ sol::object module::mysql_result::get(sol::object obj, sol::this_state s)
     {
         GET_VALUE(get_int64);
     }
-    else if (type == "decimal")
+    else if (type == "decimal" || type == "float" || type=="double")
     {
         GET_VALUE(get_double);
     }