mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
MDL-17969 mssql native driver: improve temp tables detection. Now they can be concurrently created in different sessions.
This commit is contained in:
parent
caf2d133c2
commit
3c41bba0f2
@ -453,7 +453,8 @@ class mssql_native_moodle_database extends moodle_database {
|
||||
quotename(table_name)), column_name, 'IsIdentity') AS auto_increment,
|
||||
column_default AS default_value
|
||||
FROM tempdb.information_schema.columns
|
||||
WHERE table_name like '{" . $table . "}__________%'
|
||||
JOIN tempdb..sysobjects ON name = table_name
|
||||
WHERE id = object_id('tempdb..{" . $table . "}')
|
||||
ORDER BY ordinal_position";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user