Browse files

Improve PDO_PgSQL support

  • Loading branch information...
1 parent c4a5724 commit 40ad846d20e49dd0dc51c2af7f2d19c8b169b026 @vrana vrana committed May 14, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −2 adminer/include/pdo.inc.php
  2. +1 −0 changes.txt
View
4 adminer/include/pdo.inc.php
@@ -51,7 +51,7 @@ function store_result($result = null) {
function next_result() {
$this->_result->_offset = 0;
- return $this->_result->nextRowset();
+ return @$this->_result->nextRowset(); // @ - PDO_PgSQL doesn't support it
}
function result($query, $field = 0) {
@@ -79,7 +79,7 @@ function fetch_field() {
$row = (object) $this->getColumnMeta($this->_offset++);
$row->orgtable = $row->table;
$row->orgname = $row->name;
- $row->charsetnr = (in_array("blob", $row->flags) ? 63 : 0);
+ $row->charsetnr = (in_array("blob", (array) $row->flags) ? 63 : 0);
return $row;
}
}
View
1 changes.txt
@@ -6,6 +6,7 @@ Link to original table in EXPLAIN of SELECT * FROM table t
MySQL: inform about disabled event_scheduler
SQLite: support binary data
PostgreSQL: approximate row count in table overview
+PostgreSQL: improve PDO support in SQL command
Oracle: schema, processlist, table overview numbers
Simplify work with NULL values (customization)
Replace JSMin by better JavaScript minifier

0 comments on commit 40ad846

Please sign in to comment.