Skip to content
Permalink
Browse files

fix #7560

  • Loading branch information
jef-n committed Apr 13, 2013
1 parent b79932c commit 3a7a8972e851deb1752d107bb48b7d495beee767
@@ -1362,6 +1362,9 @@ bool QgsMssqlProvider::convertField( QgsField &field )
fieldPrec = 0;
break;

case QVariant::DateTime:
case QVariant::Date:
case QVariant::Time:
case QVariant::String:
fieldType = "nvarchar(max)";
fieldPrec = -1;
@@ -2316,11 +2316,18 @@ bool QgsOracleProvider::convertField( QgsField &field )
fieldPrec = 0;
break;

case QVariant::DateTime:
case QVariant::Time:
case QVariant::String:
fieldType = "VARCHAR2(2047)";
fieldPrec = -1;
break;

case QVariant::Date:
fieldType = "DATE";
fieldPrec = -1;
break;

case QVariant::Int:
fieldType = "NUMBER(10,0)";
fieldSize = -1;
@@ -2761,6 +2761,8 @@ bool QgsPostgresProvider::convertField( QgsField &field )
fieldPrec = 0;
break;

case QVariant::DateTime:
case QVariant::Time:
case QVariant::String:
fieldType = "varchar";
fieldPrec = -1;
@@ -2779,8 +2781,8 @@ bool QgsPostgresProvider::convertField( QgsField &field )
break;

case QVariant::Date:
fieldType = "numeric";
fieldSize = -1;
fieldType = "date";
fieldPrec = 0;
break;

case QVariant::Double:
@@ -57,6 +57,9 @@ bool QgsSpatiaLiteProvider::convertField( QgsField &field )
fieldPrec = 0;
break;

case QVariant::DateTime:
case QVariant::Date:
case QVariant::Time:
case QVariant::String:
fieldType = "TEXT";
fieldPrec = -1;

0 comments on commit 3a7a897

Please sign in to comment.
You can’t perform that action at this time.