X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 12457D8B25 for ; Mon, 21 Nov 2005 02:30:35 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 74899-09 for ; Mon, 21 Nov 2005 06:30:34 +0000 (GMT) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7C964D84C0 for ; Mon, 21 Nov 2005 02:30:32 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id 6EF981125028; Mon, 21 Nov 2005 06:30:33 +0000 (GMT) Received: from pgfoundry.org ([200.46.204.130]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 82567-01; Mon, 21 Nov 2005 06:30:31 +0000 (GMT) Received: by pgfoundry.org (Postfix, from userid 80) id 7A1551125011; Mon, 21 Nov 2005 06:30:30 +0000 (GMT) To: noreply@pgfoundry.org From: Subject: =?UTF-8?B?WyBwc3Fsb2RiYy1CdWdzLTEwMDA0MzUgXSBTcGVjaWFsIGNoYXJhY3RlcnMgaW4gdGFibGUgbmFtZXM=?= Content-type: text/plain; charset=UTF-8 Message-Id: <20051121063030.7A1551125011@pgfoundry.org> Date: Mon, 21 Nov 2005 06:30:30 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=-0.765 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.125, NO_REAL_NAME=0.55, SUBJECT_EXCESS_BASE64=0] X-Spam-Score: -0.765 X-Spam-Level: X-Archive-Number: 200511/217 X-Sequence-Number: 6453 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