[postgresql-it] bytea e escape

  • From: Antonio <straicher@xxxxxxxxxxxxx>
  • To: PostgreSQL list <postgresql-it@xxxxxxxxxxxxx>
  • Date: Mon, 22 Jan 2007 15:27:15 +0100

salve a tutti,

sto avendo a che fare con dei campi 'bytea' in cui devo salvare dei file in
pdf ... uso psycopg2 e (sto cercando !! ;-)) di usare anche sqlalchemy ...
comunque per il momento da sqlalchemy ho un bel 

'unexpected EOF on client connection'

mentre con psycopg2 riesco ad inserire il file ... l'unica cosa che vorrei
sapere e; COME togliere questi warning !! come faccio l'escape della
stringa da immettere nel bytea ?? il log:

Jan 22 15:02:58 faxmail postgres[18750]: [4-1] WARNING:  nonstandard use of \\ 
in a string literal at character 101
Jan 22 15:02:58 faxmail postgres[18750]: [4-2] HINT:  Use the escape string 
syntax for backslashes, e.g., E'\\'.

grazie anticipate ...

-- 
#include <stdio.h>
int main(void){char c[]={10,65,110,116,111,110,105,111,32,98,97,114,98,111,110,
101,32,60,104,105,110,100,101,109,105,116,64,116,105,115,99,97,108,105,110,101,
116,46,105,116,62,10,10,0};printf("%s",c);return 0;}

Other related posts:

  • » [postgresql-it] bytea e escape - Antonio