lib/gratan/driver.rb in gratan-0.2.8.beta2 vs lib/gratan/driver.rb in gratan-0.2.8.beta3
- old
+ new
@@ -174,10 +174,12 @@
grant(user, host, object, :privs => ['USAGE'], :with => options.join(' '))
end
end
def disable_log_bin_local
- query('SET SQL_LOG_BIN = 0')
+ unless @options[:skip_disable_log_bin]
+ query('SET SQL_LOG_BIN = 0')
+ end
end
private
def query(sql)