mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing incorrect default value.
This commit is contained in:
parent
2e5bdd862b
commit
f353eb733f
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ class Sqlserver extends DboSource {
|
|||
if ($cache != null) {
|
||||
return $cache;
|
||||
}
|
||||
$fields = false;
|
||||
$fields = array();
|
||||
$table = $this->fullTableName($model, false);
|
||||
$cols = $this->_execute("SELECT COLUMN_NAME as Field, DATA_TYPE as Type, COL_LENGTH('" . $table . "', COLUMN_NAME) as Length, IS_NULLABLE As [Null], COLUMN_DEFAULT as [Default], COLUMNPROPERTY(OBJECT_ID('" . $table . "'), COLUMN_NAME, 'IsIdentity') as [Key], NUMERIC_SCALE as Size FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '" . $table . "'");
|
||||
if (!$cols) {
|
||||
|
|
Loading…
Reference in a new issue