From 03076057704ced9a2e1bc7bca829299a459bc07d Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Tue, 15 Feb 2005 18:39:05 +0000 Subject: Fixed a bug that caused crashes when using type translation with typeless columns (like those from count(*), etc.). --- test/tc_integration.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/tc_integration.rb b/test/tc_integration.rb index e55b5a1..514ffe2 100644 --- a/test/tc_integration.rb +++ b/test/tc_integration.rb @@ -889,6 +889,13 @@ module Integration assert_equal [ 1, "foo" ], @result.next end + define_method( "test_next_type_translation_with_untyped_column" ) do + @db.type_translation = true + @db.query( "select count(*) from foo" ) do |result| + assert_equal ["3"], result.next + end + end + define_method( "test_next_results_as_hash" ) do @db.results_as_hash = true @result.reset( 1 ) -- cgit