Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Pgadmin Support > Re: win32 psql ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1994 of 2158
Post > Topic >>

Re: win32 psql syntax error running any .sql crea

by magnus@[EMAIL PROTECTED] (Magnus Hagander) Apr 8, 2008 at 09:38 AM

Gah, that's what I get for not doublechekcing what that darn word
completion on my phone did with what I wrote :-)

That looks like it could be a *unicode* BOM. Can you open the file in a
*hex* editor and check the first couple of bytes..

//Magnus

Magnus Hagander wrote:
> Looks like it could be a knocked BOM. Can you open the file in a bed
> editor and check the first couple of bytes?
>=20
> /Magnus
>=20
> > ------- Original Message -------
> > From: Kev <kevinjamesfield@[EMAIL PROTECTED]
>
> > To: pgadmin-sup****t@[EMAIL PROTECTED]
> > Sent: 08-04-07, 22:34:42
> > Subject: [pgadmin-sup****t] win32 psql syntax error running any .sql
> > created by the query editor
> >=20
> > Hi,
> >=20
> > This is reproducible every time on my Windows 2003 Server box
> > running pgAdmin3 1.8.2 and pgsql 8.3.
> >=20
> > 1. Open the query editor.
> > 2. Type any valid query.
> > 3. Save.
> > 4. In a DOS box, run psql -f on the file you just saved.
> >=20
> > I get the following error:
> >=20
> > psql:path/to/test.sql:71: ERROR:  syntax error at or near
"=D0=BF=C2=BB=
=D1=97"
> > LINE 1: =D0=BF=C2=BB=D1=97select * from cust
> >=20
> > If I open the file in TextPad, it says it's of UNIX type.  If I then
> > save it again using TextPad and run it, it runs fine without errors.
> >=20
> > This also happens even if I go Edit->Line Ends-> and choose either
> > DOS or UNIX in the query editor and then save again.
> >=20
> > I could be wrong, but this sounds like a bug.  Thoughts or
> > suggestions?
> >=20
> > Thanks,
> > Kev
> >=20
> > --=20
> > Sent via pgadmin-sup****t mailing list
> > (pgadmin-sup****t@[EMAIL PROTECTED]
) To make changes to your
> > subscription: http://www.postgresql.org/mailpref/pgadmin-sup****t
> >=20
>=20
> --=20
> Sent via pgadmin-sup****t mailing list (pgadmin-sup****t@[EMAIL PROTECTED]
)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-sup****t


--=20
Sent via pgadmin-sup****t mailing list (pgadmin-sup****t@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-sup****t
 




 1 Posts in Topic:
Re: win32 psql syntax error running any .sql crea
magnus@[EMAIL PROTECTED]   2008-04-08 09:38:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 18:15:58 CST 2008.