*
**********************************************************************
* $Log$
+ * Revision 1.53 2004/08/05 16:53:29 strk
+ * schema support patches sent by Mark
+ *
* Revision 1.52 2004/06/16 13:42:05 strk
* Added schema support in getMaxFieldSize.
* Added direct support for TIMESTAMP field types (thanks to Steffen Macke).
sprintf(query, "SELECT a.attname, a.atttypid, a.attlen FROM "
"pg_attribute a, pg_class c, pg_namespace n WHERE "
"n.nspname = '%s' AND a.attrelid = c.oid AND "
+ "n.oid = c.relnamespace AND "
"a.atttypid != 0 AND "
"a.attnum > 0 AND c.relname = '%s'", schema, table);
}
*
**********************************************************************
* $Log$
+ * Revision 1.61 2004/08/05 16:53:29 strk
+ * schema support patches sent by Mark
+ *
* Revision 1.60 2004/07/29 14:10:37 strk
* Unability to open a shapefile or dbffile reported more nicely.
*
if (!dump_format)
{
- printf("INSERT INTO \"%s\" %s VALUES ('%d',",
+ if ( schema )
+ {
+ printf("INSERT INTO \"%s\".\"%s\" %s VALUES ('%d',",
+ schema, table, col_names, j);
+ }
+ else
+ {
+ printf("INSERT INTO \"%s\" %s VALUES ('%d',",
table, col_names, j);
+ }
}
else
{