Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 893D24763BF for ; Sun, 12 Jan 2003 12:36:42 -0500 (EST) Received: from web20809.mail.yahoo.com (web20809.mail.yahoo.com [216.136.226.198]) by postgresql.org (Postfix) with SMTP id C5675475E71 for ; Sun, 12 Jan 2003 12:36:41 -0500 (EST) Message-ID: <20030112173647.62594.qmail@web20809.mail.yahoo.com> Received: from [68.105.48.176] by web20809.mail.yahoo.com via HTTP; Sun, 12 Jan 2003 09:36:47 PST Date: Sun, 12 Jan 2003 09:36:47 -0800 (PST) From: Jeff Eckermann Subject: Re: Insert path fails To: Steven Sluter , pgsql-odbc@postgresql.org In-Reply-To: <20030109163411.W25392@sidehack.sat.gweep.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/56 X-Sequence-Number: 2555 --- Steven Sluter wrote: > Hello- > > I am running PostgreSQL 7.2.1 on > i386-portbld-freebsd4.6. I'm connecting > from a program on windows nt 4.0, using the > 7.02.00.05 ver. of PGSQL-ODBC > drivers. > > When I try to insert a windows UNC path: > > \\RAID\Raid\control tiffs\50_gray.tif > > > into the database, I end up with this: > > \RAIDRaidcontrol tiffs(_gray.tif The backslash is an escape character in PostgreSQL, and is stripped off at parsing time. Your alternatives are: * Double every backslash you want to preserve, i.e. \\\\RAID\\Raid\\control tiffs\\50_gray.tif * Add extra quotes (a mess, don't even try it) * Use the quote_literal() function, which causes PostgreSQL to accept the text as-is: e.g. INSERT INTO () VALUES quote_literal('text goes here') __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com