[Gambas-bugtracker] Bug #2490: Postgresql integer is translated to string in Gambas result
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Thu Mar 10 18:37:45 CET 2022
http://gambaswiki.org/bugtracker/edit?object=BUG.2490&from=L21haW4-
Comment #2 by Christof THALHOFER:
Create a db "forbenoit" on your postgresql server:
--DROP DATABASE forbenoit
CREATE DATABASE forbenoit WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'de_DE.UTF-8' LC_CTYPE = 'de_DE.UTF-8' TABLESPACE = pg_default CONNECTION LIMIT = -1;
Let the code run. It asks host and pw of user 'postgresql'.
Then it creates a table tbtest with column i (integer). It inserts 1.
Then it queries the number from the database and prints 'Typeof(res!i)'
On my machine it prints 9 = gb.String
----------------------------------------------------------------------------
Attachment: pgtestbug2490-0.0.1.tar.gz
Christof THALHOFER changed the state of the bug to: Accepted.
More information about the Bugtracker
mailing list