return convert_lo(stmt, value, fCType, rgbValueBindRow, cbValueMax, pcbValueBindRow);
+ case 0:
+ break;
+
default:
if (field_type == stmt->hdbc->lobj_type /* hack until permanent type available */
else if (token[0] == '(')
{
blevel++;
- mylog("blevel++ = %d\n", blevel);
+ mylog("blevel++ -> %d\n", blevel);
/* aggregate function ? */
if (stoken[0] && updatable && 0 == subqlevel)
{
}
if (out_table && !in_table) /* new table */
{
+ BOOL is_table_name;
+
in_dot = FALSE;
maybe_join = 0;
if (!dquote)
ti = stmt->ti;
wti = ti[stmt->ntab - 1];
- if (dquote || stricmp(token, "select"))
+ is_table_name = TRUE;
+ if (dquote)
+ ;
+ else if (0 == stricmp(token, "select"))
+ {
+ mylog("got subquery lvl=%d\n", blevel);
+ is_table_name = FALSE;
+ }
+ else if ('(' == ptr[0])
+ {
+ mylog("got srf? = '%s'\n", token);
+ is_table_name = FALSE;
+ }
+ if (is_table_name)
{
STR_TO_NAME(wti->table_name, token);
lower_the_name(GET_NAME(wti->table_name), conn, dquote);
+ mylog("got table = '%s'\n", PRINT_NAME(wti->table_name));
}
else
{
NULL_THE_NAME(wti->table_name);
TI_no_updatable(wti);
}
- mylog("got table = '%s'\n", PRINT_NAME(wti->table_name));
if (0 == blevel && delim == ',')
{
#define POSTGRESDRIVERVERSION "08.02.0501"
#define POSTGRES_RESOURCE_VERSION "08.02.0501\0"
#define PG_DRVFILE_VERSION 8,2,05,01
-#define PG_BUILD_VERSION "200710280001"
+#define PG_BUILD_VERSION "200710290001"
#endif