Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zvn6Q-0006Ai-Td for pgsql-odbc@arkaria.postgresql.org; Mon, 09 Nov 2015 14:07:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zvn6P-0001br-Vt for pgsql-odbc@arkaria.postgresql.org; Mon, 09 Nov 2015 14:07:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zvn63-0001Cc-Dk for pgsql-odbc@postgresql.org; Mon, 09 Nov 2015 14:06:59 +0000 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Zvn5z-0004cH-DV for pgsql-odbc@postgresql.org; Mon, 09 Nov 2015 14:06:58 +0000 Received: by pabfh17 with SMTP id fh17so200568507pab.0 for ; Mon, 09 Nov 2015 06:06:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=F8JDOEa4vTIiU3xfyW/i91H+6RQ+xrTwZhr3yQI6XA4=; b=0baS3uOTh/0KPU0IiAEw8wFq/C/uHgdG2D+7NKFNI3Pj8Z3jbKD94e1kzvxyaDKRTC p9Vp4imBQwZBpmgVnvecMTNO9c6GcdKKDcKcu1sX6kZ5zvgf656N3cKW1udoXJlA1jka dLhQ0bbTNWaTi2zvE7bjKz1QA9T6kF/XxU7xvM1jxnFWm+4AlaA7+cfuAdqA8v2PPHfy z7FC8cUrTj1ZyJTLN0LQQkyZur0e/K248a41olkEIjBWgzNCU3GjufMuYeC8ciqU4wn2 yGGPX8qqP/EBfV/HiCOm3ek5Mh2MciYGEqS23veYXOZjhgTrkE2x/GxgCAHkhXBNZw27 gJUA== X-Received: by 10.68.57.235 with SMTP id l11mr41016395pbq.26.1447078012851; Mon, 09 Nov 2015 06:06:52 -0800 (PST) Received: from [192.168.1.112] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id ix2sm5076154pac.15.2015.11.09.06.06.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Nov 2015 06:06:52 -0800 (PST) Message-ID: <5640A879.9030308@iki.fi> Date: Mon, 09 Nov 2015 16:06:49 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Christian Ullrich , pgsql-odbc@postgresql.org Subject: Re: Bug in execute.c References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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