Browse Source

增加部分GET支持

xx 2 năm trước cách đây
mục cha
commit
cd8beae98a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
     }