diff options
author | Hiroshi Inoue <inoue@tpf.co.jp> | 2002-04-02 10:50:50 +0000 |
---|---|---|
committer | Hiroshi Inoue <inoue@tpf.co.jp> | 2002-04-02 10:50:50 +0000 |
commit | f8da3990b5437e47b7296a6770a3efd215b326d0 (patch) | |
tree | 38b031307f4048be70099ad6daf4c8a901c7a177 /src/interfaces/odbc/misc.h | |
parent | c26a44db08677bccc04426b42973bb372e6e3046 (diff) |
[HACKERS] Proposed patch for ODBC driver w/ C-a-n-c-e-l
From: Bradley McLean <brad@bradm.net>
Patch against 7,2 submitted for comment.
This seems to work just fine; Now, when our users submit a 2 hour
query with four million row sorts by accident, then cancel it 30 seconds
later, it doesn't bog down the server ...
Diffstat (limited to 'src/interfaces/odbc/misc.h')
-rw-r--r-- | src/interfaces/odbc/misc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interfaces/odbc/misc.h b/src/interfaces/odbc/misc.h index cba7f2bfede..fe946eebfa1 100644 --- a/src/interfaces/odbc/misc.h +++ b/src/interfaces/odbc/misc.h @@ -89,6 +89,9 @@ char *strncpy_null(char *dst, const char *src, int len); char *trim(char *string); char *make_string(const char *s, int len, char *buf); char *my_strcat(char *buf, const char *fmt, const char *s, int len); +char *schema_strcat(char *buf, const char *fmt, const char *s, int len, + const char *, int); +#define GET_SCHEMA_NAME(nspname) (stricmp(nspname, "public") ? nspname : "") /* defines for return value of my_strcpy */ #define STRCPY_SUCCESS 1 |