Skip to content
Browse files

- default sql_mode to ansi, create view statement in schema.rb will b…

…e mysql specific else
  • Loading branch information...
1 parent fb085c7 commit db40f22322a64835f6b062318d16c5aa77c540e6 bsjaekel committed Apr 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/plain_view/connection_adapters/mysql2_adapter.rb
2 lib/plain_view/connection_adapters/mysql2_adapter.rb
@@ -50,7 +50,7 @@ def structure_dump
# Get the view select statement for the specified table.
def view_select_statement(view, name=nil)
+ execute("SET SESSION sql_mode='ANSI'")
row = execute("SHOW CREATE VIEW #{view}", name).each do |row|
return row[1] #convert_statement(row[1]) if row[0] == view

0 comments on commit db40f22

Please sign in to comment.
Something went wrong with that request. Please try again.