summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2005-02-05 18:24:44 +0000
committerJamis Buck <jamis@37signals.com>2005-02-05 18:24:44 +0000
commit4177b060cf5ef89f3f08661d8223dc2d487a3f45 (patch)
tree9abfe93d4f961e0833cd1279519c37c2dc963d28 /test
parent7c6454770093d4cadd139af7c5c0223ed541b00b (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/tc_integration.rb6
1 files changed, 6 insertions, 0 deletions
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 )