|
Python Connector for InterBase Data types - Python Connector for InterBase |
|
The following table describes the supported InterBase data types and their mapping to the Python data types. The type codes returned in the description cursor attribute can be used in the addtypecast() cursor method.
| InterBase data type | Type code | Python data type |
|---|---|---|
|
SMALLINT |
402 |
int |
|
INTEGER |
403 |
int |
|
FLOAT |
405 |
float |
|
DOUBLE PRECISION |
406 |
float |
|
DECIMAL |
407 |
float |
|
NUMERIC |
408 |
float |
|
DATE |
409 |
datetime.date |
|
TIME |
410 |
datetime.time |
|
TIMESTAMP |
411 |
datetime.datetime |
|
CHAR |
412 |
str |
|
VARCHAR |
413 |
str |
|
TEXT |
417 |
str |
|
CHARBIN |
414 |
binary |
|
VARCHARBIN |
415 |
binary |
|
BLOB |
416 |
bytes |
|
ARRAY |
418 |
array.array |