diff options
author | Hiroshi Inoue <inoue@tpf.co.jp> | 2002-05-22 05:51:03 +0000 |
---|---|---|
committer | Hiroshi Inoue <inoue@tpf.co.jp> | 2002-05-22 05:51:03 +0000 |
commit | 79420840ee4f56b8399d3f526bb45ce788198e2e (patch) | |
tree | 83027ac6beca92e86847cf9468d58e9385bcc6fc /src/interfaces/odbc/misc.c | |
parent | 6c6f395a8aca8a9525d62cbf46fbafd130bdb9e5 (diff) | |
download | postgresql-79420840ee4f56b8399d3f526bb45ce788198e2e.tar.gz postgresql-79420840ee4f56b8399d3f526bb45ce788198e2e.zip |
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.
Diffstat (limited to 'src/interfaces/odbc/misc.c')
-rw-r--r-- | src/interfaces/odbc/misc.c | 13 |
1 files changed, 9 insertions, 4 deletions
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); |