[ psqlodbc-Bugs-1000435 ] Special characters in table names

From: <noreply(at)pgfoundry(dot)org>
To: noreply(at)pgfoundry(dot)org
Subject: [ psqlodbc-Bugs-1000435 ] Special characters in table names
Date: 2005-11-21 06:30:30
Message-ID: 20051121063030.7A1551125011@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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

Browse pgsql-odbc by date

  From Date Subject
Next Message Marc Herbert 2005-11-21 17:19:15 Re: Continuing encoding fun....
Previous Message Dave Page 2005-11-19 21:32:05 Re: psqlOdbc Ansi + BDE issues