Ver código fonte

增加部分GET支持

xx 2 anos atrás
pai
commit
cd8beae98a
1 arquivos alterados com 1 adições e 1 exclusões
  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);
     }