Selaa lähdekoodia

增加部分GET支持

xx 2 vuotta sitten
vanhempi
sitoutus
cd8beae98a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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);
     }