+ better data types mapping
This commit is contained in:
parent
feb041f543
commit
1acc288349
1 changed files with 13 additions and 8 deletions
|
@ -245,15 +245,20 @@ namespace mapnik {
|
|||
create_sql << "'" << cursor->getFieldName(pos);
|
||||
switch (oid)
|
||||
{
|
||||
case 700:
|
||||
case 701:
|
||||
create_sql << "' REAL";
|
||||
break;
|
||||
default:
|
||||
create_sql << "' TEXT";
|
||||
break;
|
||||
case 20:
|
||||
case 21:
|
||||
case 23:
|
||||
create_sql << "' INTEGER";
|
||||
break;
|
||||
case 700:
|
||||
case 701:
|
||||
create_sql << "' REAL";
|
||||
break;
|
||||
default:
|
||||
create_sql << "' TEXT";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue