Title: [646] trunk/activerecord-jdbc/lib: Fix MySQL booleans and remove insert_bind and update_bind
- Revision
- 646
- Author
- olabini
- Date
- 2007-06-21 05:36:12 -0400 (Thu, 21 Jun 2007)
Log Message
Fix MySQL booleans and remove insert_bind and update_bind
Modified Paths
Diff
Modified: trunk/activerecord-jdbc/lib/active_record/connection_adapters/jdbc_adapter.rb (645 => 646)
--- trunk/activerecord-jdbc/lib/active_record/connection_adapters/jdbc_adapter.rb 2007-06-20 09:19:08 UTC (rev 645)
+++ trunk/activerecord-jdbc/lib/active_record/connection_adapters/jdbc_adapter.rb 2007-06-21 09:36:12 UTC (rev 646)
@@ -371,14 +371,6 @@
connection.adapter = self
end
- def insert_bind(*args)
- @connection.insert_bind *args
- end
-
- def update_bind(*args)
- @connection.update_bind *args
- end
-
def modify_types(tp)
tp
end
Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mysql.rb (645 => 646)
--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mysql.rb 2007-06-20 09:19:08 UTC (rev 645)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mysql.rb 2007-06-21 09:36:12 UTC (rev 646)
@@ -10,7 +10,7 @@
TYPES_ALLOWING_EMPTY_STRING_DEFAULT = Set.new([:binary, :string, :text])
def simplified_type(field_type)
- return :boolean if field_type =~ /tinyint\(1\)|bit\(1\)/i
+ return :boolean if field_type =~ /tinyint\(1\)|bit/i
return :string if field_type =~ /enum/i
super
end
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel