Bug in execute.c

From: Christian Ullrich <chris(at)chrullrich(dot)net>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Bug in execute.c
Date: 2015-04-23 11:37:56
Message-ID: mhalik$s8k$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

From execute.c, SC_setInsertedTable(), line 790:

if (ptr = strchr(cmd + 1, '.'), NULL != ptr)
len = ptr - cmd;

This branch is supposed to extract an unquoted schema name from an
INSERT statement. If that statement is

INSERT INTO mytable VALUES (1, 1.5)

, the schema name will be "mytable VALUES (1, 1", and the table name, "5)".

I'm sorry I don't have a patch right now. I can come up with one, though.

--
Christian

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Christian Ullrich 2015-04-24 07:48:08 Re: Bug in execute.c
Previous Message Christian Ullrich 2015-04-23 11:23:31 Problem getting @@identity