From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject: [ psqlodbc-Bugs-1000435 ] Special characters in table names
Date: Mon, 21 Nov 2005 06:30:30 +0000 (GMT)
Message-ID: <20051121063030.7A1551125011@pgfoundry.org> (raw)
Bugs item #1000435, was opened at 2005-11-21 06:30
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000435&group_id=1000125
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Chris Dunlop (chrisrd)
Assigned to: Nobody (None)
Summary: Special characters in table names
Initial Comment:
I'm not sure if this is actually a MSSQL 2K or a psqlODBC problem...
Exporting a table named "SEARCHMANAGER#CNLKP" (an auto-generated table name) from MSSQL 2K to PG, using psqlODBC v08.01.01.01, the create table succeeds with a quoted table name, but the data copy fails because the table name isn't quoted to protect the special characters.
Using "log_statement = true" in postgresql.conf, the output is:
2005-11-21 17:17:10 [16940] LOG: statement: CREATE TABLE "SEARCHMANAGER#CNLKP" (
"RECORD_ID" varchar (32) NOT NULL,
-- more fields deleted
)
2005-11-21 17:17:11 [16940] LOG: statement: SELECT 1
2005-11-21 17:17:11 [16940] LOG: statement: select * from SEARCHMANAGER#CNLKP
2005-11-21 17:17:11 [16940] ERROR: syntax error at or near "#" at character 28
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000435&group_id=1000125
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: noreply@pgfoundry.org
Subject: Re: [ psqlodbc-Bugs-1000435 ] Special characters in table names
In-Reply-To: <20051121063030.7A1551125011@pgfoundry.org>
References: <20051121063030.7A1551125011@pgfoundry.org>
* 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