summaryrefslogtreecommitdiffstats
path: root/lib/sqlite3/driver
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 /lib/sqlite3/driver
parent7c6454770093d4cadd139af7c5c0223ed541b00b (diff)
downloadthird_party-sqlite3-ruby-4177b060cf5ef89f3f08661d8223dc2d487a3f45.tar.gz
third_party-sqlite3-ruby-4177b060cf5ef89f3f08661d8223dc2d487a3f45.tar.xz
third_party-sqlite3-ruby-4177b060cf5ef89f3f08661d8223dc2d487a3f45.zip
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 'lib/sqlite3/driver')
-rw-r--r--lib/sqlite3/driver/native/driver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlite3/driver/native/driver.rb b/lib/sqlite3/driver/native/driver.rb
index ee5e4a7..fce2f6d 100644
--- a/lib/sqlite3/driver/native/driver.rb
+++ b/lib/sqlite3/driver/native/driver.rb
@@ -92,7 +92,7 @@ module SQLite3 ; module Driver ; module Native
def bind_text( stmt, index, value, utf16=false )
API.send( ( utf16 ? :sqlite3_bind_text16 : :sqlite3_bind_text ),
- stmt, index, value )
+ stmt, index, value.to_s )
end
def column_name( stmt, index, utf16=false )