Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Making DboSybase able to return VIEW's as part of listSources(), maki…

…ng it similar to DboPostgres and DboMysql. Fixes #91
  • Loading branch information...
commit 793c6ec07a5c0f7da6694e92892bf7c7ae719268 1 parent 0065005
@markstory markstory authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 cake/libs/model/datasources/dbo/dbo_sybase.php
View
11 cake/libs/model/datasources/dbo/dbo_sybase.php
@@ -132,7 +132,7 @@ function listSources() {
return $cache;
}
- $result = $this->_execute("select name from sysobjects where type='U'");
+ $result = $this->_execute("SELECT name FROM sysobjects WHERE type IN ('U', 'V')");
if (!$result) {
return array();
} else {
@@ -168,10 +168,11 @@ function describe(&$model) {
$column[0] = $column[$colKey[0]];
}
if (isset($column[0])) {
- $fields[$column[0]['Field']] = array('type' => $this->column($column[0]['Type']),
- 'null' => $column[0]['Null'],
- 'length' => $this->length($column[0]['Type']),
- );
+ $fields[$column[0]['Field']] = array(
+ 'type' => $this->column($column[0]['Type']),
+ 'null' => $column[0]['Null'],
+ 'length' => $this->length($column[0]['Type']),
+ );
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.