SQL: Fix unable to create a new linkshell bug