[7947] Use "NUMERIC" type instead of "BIGINT" in mysql_to_pgsql convertor. Author: AlexDereka

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-03 19:25:27 -05:00
parent 8419f9b059
commit fc4f7e6cf1
+13 -2
View File
@@ -89,9 +89,20 @@ string ConvertNativeType(enum_field_types mysqlType, uint32 length)
case FIELD_TYPE_INT24:
return "integer";
case FIELD_TYPE_LONGLONG:
return "int8";
case FIELD_TYPE_LONG:
return "bigint";
{
string temp;
char str[10];
temp = "numeric";
if (length)
{
temp.append("(");
sprintf(str,"%d",length);
temp.append(str);
temp.append(")");
}
return temp;
}
case FIELD_TYPE_DECIMAL:
case FIELD_TYPE_FLOAT:
case FIELD_TYPE_DOUBLE: