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.). --- lib/sqlite3/translator.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/sqlite3') 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 -- cgit