sql - PostgreSQL: nonstandard use of escape string -


i have postgresql 8.4 database being queried application outside of control. queries such following throwing warnings working...

select "tagname","tagindex","tagtype","tagdatatype"  "tagtable" "tagname" = 'lift_stations\07\etms\generator_etm' 

however, same query stations 08 , 09 failing...

select "tagname","tagindex","tagtype","tagdatatype"  "tagtable" "tagname" = 'lift_stations\08\etms\generator_etm' 

warning: nonstandard use of escape in string literal line 2: ...,"tagdatatype" "tagtable" "tagname" = 'lift_stat... ^ hint: use escape string syntax escapes, e.g., e'\r\n'.

error: invalid byte sequence encoding "utf8": 0x00 hint: error can happen if byte sequence not match encoding expected server, controlled "client_encoding".

*** error ***

error: invalid byte sequence encoding "utf8": 0x00 sql state: 22021 hint: error can happen if byte sequence not match encoding expected server, controlled "client_encoding".

i know problem incorrect escaping, given fact 08 , 09 ones not working, i'm hoping might have bright idea on how work around this.

thanks!

it should work if enable standard_conforming_strings.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -