Author: turnstep
Date: Tue Mar 27 11:30:46 2007
New Revision: 9351
Modified:
DBD-Pg/trunk/dbdimp.c
Log:
Better error message on invalid type
Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c (original)
+++ DBD-Pg/trunk/dbdimp.c Tue Mar 27 11:30:46 2007
@@ -1744,7 +1744,7 @@
the insert.
*/
if (!(currph->bind_type = sql_type_data((int)sql_type))) {
- croak("Cannot bind %s unknown sql_type %" IVdf, name,
sql_type);
+ croak("Cannot bind param %s: unknown sql_type %d",
name, sql_type);
}
if (!(currph->bind_type =
pg_type_data(currph->bind_type->type.pg))) {
croak("Cannot find a pg_type for %" IVdf, sql_type);