MSSQL alter field is exactly the standard one but with alter_column_skip_default enabled

This commit is contained in:
stronk7
2006-09-24 15:54:46 +00:00
parent c1761c4292
commit cc3779694a
@@ -60,8 +60,6 @@ class XMLDBmssql extends XMLDBgenerator {
var $concat_character = '+'; //Characters to be used as concatenation operator. If not defined
//MySQL CONCAT function will be use
var $alter_column_skip_default = true; //The generator will skip the default clause on alter column
/**
* Creates one new XMLDBmssql
*/
@@ -179,6 +177,15 @@ class XMLDBmssql extends XMLDBgenerator {
return $results;
}
/**
* Given one XMLDBTable and one XMLDBField, return the SQL statements needded to alter the field in the table
*/
function getAlterFieldSQL($xmldb_table, $xmldb_field) {
/// Just prevent default clauses in this type of sentences for mssql and launch the parent one
$this->alter_column_skip_default = true;
return parent::getAlterFieldSQL($xmldb_table, $xmldb_field);
}
/**
* Returns an array of reserved words (lowercase) for this DB
*/