From 4177b060cf5ef89f3f08661d8223dc2d487a3f45 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Sat, 5 Feb 2005 18:24:44 +0000 Subject: Version bump, and made it so that an array may be passed as the bind parameter and it will be flattened prior to binding. The native implementation of bind_text also does a to_s on its parameter now to prevent segfaults. --- test/tc_integration.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/tc_integration.rb b/test/tc_integration.rb index 2dd6016..948e833 100644 --- a/test/tc_integration.rb +++ b/test/tc_integration.rb @@ -587,6 +587,12 @@ module Integration value = @db.get_first_value( "select multiply(a) from foo" ) assert_equal "6", value end + + define_method( "test_bind_array_parameter" ) do + result = @db.get_first_value( "select b from foo where a=? and b=?", + [ 1, "foo" ] ) + assert_equal "foo", result + end end const_set( "TC_Database_#{driver}", test_case ) -- cgit