Automatic Addslashes - Mailing list pgsql-general

From Enrico Comini
Subject Automatic Addslashes
Date
Msg-id NCBBIOBMPJJBPJICNDLLAEAIEFAA.algobit@algobit.com
Whole thread Raw
Responses Re: Automatic Addslashes  (GH <grasshacker@over-yonder.net>)
List pgsql-general
I do

copy tmp from '/home/algobit/product.txt

tmp ia a table with one record (line varchar(255))

in product.txt I have many line as:

2;"100";"Parmigiano Reggiano";"Parmigiano Reggiano stagionato 2
anni";4;"parmigiano4.jpg";2;"Fette 1 Kg";0.18;1;1.00;"true"

Then with "select * from tmp" the result is exactly like in the original
file

2;"100";"Parmigiano Reggiano";"Parmigiano Reggiano stagionato 2
anni";4;"parmigiano4.jpg";2;"Fette 1 Kg";0.18;1;1.00;"true"

But when i fetch in a variable the rercords (with php) i READ in the
variable

2;\"100\";\"Parmigiano Reggiano\";\"Parmigiano Reggiano stagionato 2
anni\";4;\"parmigiano4.jpg\";2;\"Fette 1 Kg\";0.18;1;1.00;\"true\"

the question is : The SLASH are effectively in the record ?


pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: create snapshot?
Next
From: Pawel Dubin
Date:
Subject: Re: plz, Help!! HOW CAN I GET THE ROWNUM IN POSTGRES TABLE AS I DID WITH ORACLE!!