[gnome-db] Numeric with commas...

Hi list.
I'm trying to do an insert to a table using the contents of a spin
button, but because my locale the decimal serparator is a comma (,)
instead of a . and it fails. The line is like this (but getting of 12
spins instead of 1...) :

buffer=g_strdup_printf("INSERT INTO productos (stock) VALUES ('%.2f')",

I use postgresql and my locale settings are es_AR.

Saludos, Juan.


1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]