summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Schneider2007-11-28 17:54:08 +0000
committerChristian Schneider2007-11-28 17:54:08 +0000
commitbcfedeeba1b0a06901e56a4f8987e82a0b30cc4a (patch)
tree6e60115000934d023e521198343bd7eb0e1e6b0d /tests
parentecb00403de3250014d4a8a1070506fc0577e9ec9 (diff)
downloaditools-bcfedeeba1b0a06901e56a4f8987e82a0b30cc4a.tar.gz
itools-bcfedeeba1b0a06901e56a4f8987e82a0b30cc4a.tar.bz2
itools-bcfedeeba1b0a06901e56a4f8987e82a0b30cc4a.zip
New it_dbi type awareness: int(11) fields are returned as int
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it_dbi.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/it_dbi.t b/tests/it_dbi.t
index 8ef8cab..82826f1 100755
--- a/tests/it_dbi.t
+++ b/tests/it_dbi.t
@@ -92,3 +92,9 @@ is(
array(3, $rand, "quux"),
"iterate update record 3"
);
+
+is(
+ gettype($record->_key) . "/" . gettype($record->x) . "/" . gettype($record->_data['x']) . "/" . gettype($record->foo),
+ "integer/integer/integer/string",
+ "automatic type detection"
+);