Skip to content

Commit

Permalink
planner: fix panic when upgrade from 4.0.16 to master (#39538)
Browse files Browse the repository at this point in the history
close #39527
  • Loading branch information
fzzf678 authored Dec 1, 2022
1 parent 9eea8f6 commit 89e9078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion session/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,8 @@ func initBindInfoTable(s Session) {
}

func insertBuiltinBindInfoRow(s Session) {
mustExecute(s, `INSERT HIGH_PRIORITY INTO mysql.bind_info VALUES (%?, %?, "mysql", %?, "0000-00-00 00:00:00", "0000-00-00 00:00:00", "", "", %?, "", "")`,
mustExecute(s, `INSERT HIGH_PRIORITY INTO mysql.bind_info(original_sql, bind_sql, default_db, status, create_time, update_time, charset, collation, source)
VALUES (%?, %?, "mysql", %?, "0000-00-00 00:00:00", "0000-00-00 00:00:00", "", "", %?)`,
bindinfo.BuiltinPseudoSQL4BindLock, bindinfo.BuiltinPseudoSQL4BindLock, bindinfo.Builtin, bindinfo.Builtin,
)
}
Expand Down

0 comments on commit 89e9078

Please sign in to comment.