Skip to content
Browse files

Fixing incorrect default value.

  • Loading branch information...
1 parent 2e5bdd8 commit f353eb733fd4b12ba5cac531bd1839c031a4e759 @markstory markstory committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/Database/Sqlserver.php
View
2 lib/Cake/Model/Datasource/Database/Sqlserver.php
@@ -192,7 +192,7 @@ public function describe($model) {
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) {

0 comments on commit f353eb7

Please sign in to comment.
Something went wrong with that request. Please try again.