From 9d29209b4c24e0fe0658fc5b5a0b7ea9f418769a Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Tue, 9 Nov 2010 12:14:30 +0000 Subject: [PATCH] Improved a mylog output. --- parse.c | 11 +++++++++-- version.h | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/parse.c b/parse.c index 88a11a7..a70f710 100644 --- a/parse.c +++ b/parse.c @@ -1208,7 +1208,7 @@ static char parse_the_statement(StatementClass *stmt, BOOL check_hasoids, BOOL sqlsvr_check) { CSTR func = "parse_the_statement"; - char token[TOKEN_SIZE], stoken[TOKEN_SIZE], btoken[TOKEN_SIZE]; + char delimdsp[2], token[TOKEN_SIZE], stoken[TOKEN_SIZE], btoken[TOKEN_SIZE]; char delim, quote, dquote, @@ -1280,7 +1280,14 @@ parse_the_statement(StatementClass *stmt, BOOL check_hasoids, BOOL sqlsvr_check) { unquoted = !(quote || dquote); - mylog("unquoted=%d, quote=%d, dquote=%d, numeric=%d, delim='%c', token='%s', ptr='%s'\n", unquoted, quote, dquote, numeric, delim, token, ptr); + if (delim) + { + delimdsp[0] = delim; + delimdsp[1] = '\0'; + } + else + delimdsp[0] = '\0'; + mylog("unquoted=%d, quote=%d, dquote=%d, numeric=%d, delim='%s', token='%s', ptr='%s'\n", unquoted, quote, dquote, numeric, delimdsp, token, ptr); old_blevel = blevel; if (unquoted && blevel == 0) diff --git a/version.h b/version.h index ae1ec69..66a3da9 100644 --- a/version.h +++ b/version.h @@ -12,6 +12,6 @@ #define POSTGRESDRIVERVERSION "09.00.0201" #define POSTGRES_RESOURCE_VERSION "09.00.0201\0" #define PG_DRVFILE_VERSION 9,0,02,01 -#define PG_BUILD_VERSION "201011080001" +#define PG_BUILD_VERSION "201011090001" #endif -- 2.39.5