* @return void
*/
public function create_temp_table(xmldb_table $xmldb_table) {
- /// hack for mssql - it requires names to start with #
- $xmldb_table = $this->generator->tweakTempTable($xmldb_table);
/// Check table doesn't exist
if ($this->table_exists($xmldb_table, true)) {
* @return void
*/
public function drop_temp_table(xmldb_table $xmldb_table) {
- /// mssql requires names to start with #
- $xmldb_table = $this->generator->tweakTempTable($xmldb_table);
/// Check table doesn't exist
if (!$this->table_exists($xmldb_table, true)) {
return $sqlarr;
}
- /**
- * Tweaks the temp table instance - required for mssql # naming
- */
- public function tweakTempTable($xmldb_table) {
- if (strpos($xmldb_table->getName(), '#') !== 0) {
- $xmldb_table->setName('#'.$xmldb_table->getName()); // MSSQL requires temp table names to start with #
- }
- return $xmldb_table;
- }
-
/**
* Given one XMLDB Type, lenght and decimals, returns the DB proper SQL type
*/
return $sqlarr;
}
- /**
- * Tweaks the temp table instance - required for mssql # naming
- */
- public function tweakTempTable($xmldb_table) {
- return $xmldb_table;
- }
-
/**
* Given one correct xmldb_index, returns the SQL statements
* needed to create it (in array)