Обсуждение: Insert or Update a path from textbox...

Поиск
Список
Период
Сортировка

Insert or Update a path from textbox...

От
Дата:
Hi,
 
I'm just try to insert or update an actually table with Microsoft .NET platform VS2005.
 
The problem is that de "\" dissapear when I make the insert or Update.
 
If i debug the object has all detailed path...so Why is not saved on the table.
The type of column is character (100).
 
So:
 
I have: C:\EVOL\Carga\
I obtain on table of the postgresql: c:EVOLCarga.
 
Is an X-File?
 
If anybody can has any idea...
 
Thanks.
 
David Catasús
 

Re: Insert or Update a path from textbox...

От
Alban Hertroys
Дата:
On 31 May 2010, at 23:27, <david.catasus@1as.es> wrote:

> Hi,
>
> I'm just try to insert or update an actually table with Microsoft .NET platform VS2005.
>
> The problem is that de "\" dissapear when I make the insert or Update.

Postgres is interpreting those backslashes as escape characters. Either escape them or turn on
standard_conforming_strings.

That said, if you're having this problem your queries are probably vulnerable to SQL injection too, they're certainly
notparameterised or Postgres would have done the escaping for you. 

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.


!DSPAM:737,4c04394a10151125916774!