Commit 9d7f1341 authored by Olivier Bertrand's avatar Olivier Bertrand

- Fix bad conversion from "bigint" to TYPE_FLOAT.

modified:
  storage/connect/myutil.cpp
parent b0376d1e
...@@ -41,7 +41,7 @@ int MYSQLtoPLG(char *typname) ...@@ -41,7 +41,7 @@ int MYSQLtoPLG(char *typname)
!stricmp(typname, "text") || !stricmp(typname, "blob")) !stricmp(typname, "text") || !stricmp(typname, "blob"))
type = TYPE_STRING; type = TYPE_STRING;
else if (!stricmp(typname, "double") || !stricmp(typname, "float") || else if (!stricmp(typname, "double") || !stricmp(typname, "float") ||
!stricmp(typname, "real") || !stricmp(typname, "bigint") || !stricmp(typname, "real") ||
!stricmp(typname, "decimal") || !stricmp(typname, "numeric")) !stricmp(typname, "decimal") || !stricmp(typname, "numeric"))
type = TYPE_FLOAT; type = TYPE_FLOAT;
else if (!stricmp(typname, "date") || !stricmp(typname, "datetime") || else if (!stricmp(typname, "date") || !stricmp(typname, "datetime") ||
...@@ -143,7 +143,7 @@ int MYSQLtoPLG(int mytype) ...@@ -143,7 +143,7 @@ int MYSQLtoPLG(int mytype)
} // end of MYSQLtoPLG } // end of MYSQLtoPLG
/************************************************************************/ /************************************************************************/
/* Returns the format corresponding to a MySQL date type. */ /* Returns the format corresponding to a MySQL date type number. */
/************************************************************************/ /************************************************************************/
char *MyDateFmt(int mytype) char *MyDateFmt(int mytype)
{ {
...@@ -171,7 +171,7 @@ char *MyDateFmt(int mytype) ...@@ -171,7 +171,7 @@ char *MyDateFmt(int mytype)
} // end of MyDateFmt } // end of MyDateFmt
/************************************************************************/ /************************************************************************/
/* Returns the format corresponding to a MySQL date type. */ /* Returns the format corresponding to a MySQL date type name. */
/************************************************************************/ /************************************************************************/
char *MyDateFmt(char *typname) char *MyDateFmt(char *typname)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment