소스 검색

增加部分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);
     }