You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'mysql2'client=Mysql2::Client.new(host: 'localhost',username: 'root',database: 'test',)client.query("DROP TABLE IF EXISTS t")client.query("CREATE TABLE t (a int)")stmt=client.prepare('SELECT * FROM t WHERE a = ?')stmt.execute(1)client.query("ALTER TABLE t ADD COLUMN b int")# begin# stmt.execute(1)# rescue# # <Mysql2::Error: The number of columns in the result set differs from the number of bound buffers. You must reset the statement, rebind the result set columns, and execute the statement again># p $!# endstmt.close# Segmentation faultGC.start
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: