From 79420840ee4f56b8399d3f526bb45ce788198e2e Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Wed, 22 May 2002 05:51:03 +0000 Subject: 1) Support Keyset Driven driver cursors. 2) Supprt ARD precision/scale and SQL_C_NUEMRIC. 3) Minimal implementation of SQLGetDiagField(). 4) SQLRowCount() reports the result of SQLSetPos and SQLBulkOperation. 5) int8 -> SQL_NUMERIC for Microsoft Jet. 6) Support isolation level change. 7) ODBC3.0 SQLSTATE code. 8) Append mode log files. --- src/interfaces/odbc/misc.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/interfaces/odbc/misc.c') diff --git a/src/interfaces/odbc/misc.c b/src/interfaces/odbc/misc.c index df999941759..e4828455f51 100644 --- a/src/interfaces/odbc/misc.c +++ b/src/interfaces/odbc/misc.c @@ -105,7 +105,7 @@ mylog(char *fmt,...) if (!LOGFP) { generate_filename(MYLOGDIR, MYLOGFILE, filebuf); - LOGFP = fopen(filebuf, PG_BINARY_W); + LOGFP = fopen(filebuf, PG_BINARY_A); setbuf(LOGFP, NULL); } @@ -138,7 +138,7 @@ qlog(char *fmt,...) if (!LOGFP) { generate_filename(QLOGDIR, QLOGFILE, filebuf); - LOGFP = fopen(filebuf, PG_BINARY_W); + LOGFP = fopen(filebuf, PG_BINARY_A); setbuf(LOGFP, NULL); } @@ -284,8 +284,13 @@ schema_strcat(char *buf, const char *fmt, const char *s, int len, const char *tb { if (!s || 0 == len) { - if (tbname && (tbnmlen > 0 || tbnmlen == SQL_NTS)) - return my_strcat(buf, fmt, "public", 6); + /* + * I can find no appropriate way to find + * the CURRENT SCHEMA. If you are lucky + * you can get expected result. + */ + /***** if (tbname && (tbnmlen > 0 || tbnmlen == SQL_NTS)) + return my_strcat(buf, fmt, "public", 6); *****/ return NULL; } return my_strcat(buf, fmt, s, len); -- cgit v1.2.3