From bcfedeeba1b0a06901e56a4f8987e82a0b30cc4a Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 28 Nov 2007 17:54:08 +0000 Subject: New it_dbi type awareness: int(11) fields are returned as int --- tests/it_dbi.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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" +); -- cgit v1.2.3