pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Christian Ullrich <chris@chrullrich.net>
To: pgsql-odbc@postgresql.org
Subject: Re: Bug in execute.c
Date: Mon, 09 Nov 2015 16:06:49 +0200
Message-ID: <5640A879.9030308@iki.fi> (raw)
In-Reply-To: <mhcsfo$k6k$1@ger.gmane.org>
References: <mhalik$s8k$1@ger.gmane.org>
	<mhcsfo$k6k$1@ger.gmane.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 04/24/2015 10:48 AM, Christian Ullrich wrote:
> * Christian Ullrich wrote:
>
>>   From execute.c, SC_setInsertedTable(), line 790:
>>
>>       if (ptr = strchr(cmd + 1, '.'), NULL != ptr)
>>           len = ptr - cmd;
>
>> I'm sorry I don't have a patch right now. I can come up with one, though.
>
> Patch attached. It may be a bit over the top. Please let me know what
> you think.

Thanks, applied! I also added a little regression test for this. I 
didn't try testing it exhaustively to see what kind of things would 
still trip it over (comments? newlines?), but this is certainly a step 
in the right direction. Well, it would be better to not have to do this 
parsing, but that's no reason to not improve what we have.

- Heikki



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (3+ messages)

Message-ID: <5640A879.9030308@iki.fi>
Permalink:  ../5640A879.9030308@iki.fi/
Also on:    postgresql.org/message-id/5640A879.9030308@iki.fi

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: hlinnaka@iki.fi, chris@chrullrich.net
  Subject: Re: Bug in execute.c
  In-Reply-To: <5640A879.9030308@iki.fi>
  References: <mhalik$s8k$1@ger.gmane.org> <mhcsfo$k6k$1@ger.gmane.org> <5640A879.9030308@iki.fi>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox