From cb9cec57c0ef4d8a7081efd056bd7d742917ff73 Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Wed, 23 Mar 2005 11:02:13 +0000 Subject: Array support for all basic types. --- scripts/buildtypes.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/buildtypes.py b/scripts/buildtypes.py index 5d41498..197272f 100644 --- a/scripts/buildtypes.py +++ b/scripts/buildtypes.py @@ -53,7 +53,17 @@ basic_types = (['NUMBER', ['INT8', 'INT4', 'INT2', 'FLOAT8', 'FLOAT4', # from postgresql headers; we'll have to do it hard-coding :/ array_types = (['LONGINTEGER', [1016]], ['INTEGER', [1005, 1006, 1007]], - ['STRING', [1002, 1003, 1009, 1014, 1015]]) + ['FLOAT', [1017, 1021, 1022]], + ['DECIMAL', [1231]], + ['UNICODE', [1002, 1003, 1009, 1014, 1015]], + ['STRING', [1002, 1003, 1009, 1014, 1015]], + ['BOOLEAN', [1000]], + ['DATETIME', [1115, 1185]], + ['TIME', [1183, 1270]], + ['DATE', [1182]], + ['INTERVAL', [1187]], + ['BINARY', [1001]], + ['ROWID', [1028, 1013]]) # this is the header used to compile the data in the C module HEADER = """ -- cgit v1.2.1