Skip site navigation (1) Skip section navigation (2)

[ 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: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
Bugs item #1000435, was opened at 2005-11-21 06:30
You can respond by visiting:

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:

pgsql-odbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group