diff options
| author | Jamis Buck <jamis@37signals.com> | 2005-02-15 18:39:05 +0000 |
|---|---|---|
| committer | Jamis Buck <jamis@37signals.com> | 2005-02-15 18:39:05 +0000 |
| commit | 03076057704ced9a2e1bc7bca829299a459bc07d (patch) | |
| tree | 76536d99566f50288c71eec2e49312e5f93dd4ba /lib/sqlite3 | |
| parent | 43c69d86c38b33461bd954c0a0b6d2017741c851 (diff) | |
| download | third_party-sqlite3-ruby-03076057704ced9a2e1bc7bca829299a459bc07d.tar.gz third_party-sqlite3-ruby-03076057704ced9a2e1bc7bca829299a459bc07d.tar.xz third_party-sqlite3-ruby-03076057704ced9a2e1bc7bca829299a459bc07d.zip | |
Fixed a bug that caused crashes when using type translation with typeless columns (like those from count(*), etc.).
Diffstat (limited to 'lib/sqlite3')
| -rw-r--r-- | lib/sqlite3/translator.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlite3/translator.rb b/lib/sqlite3/translator.rb index 1ee315e..14d28b6 100644 --- a/lib/sqlite3/translator.rb +++ b/lib/sqlite3/translator.rb @@ -81,6 +81,7 @@ module SQLite3 # A convenience method for working with type names. This returns the "base" # type name, without any parenthetical data. def type_name( type ) + return "" if type.nil? type = $1 if type =~ /^(.*?)\(/ type.upcase end |
