Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Display SQL info

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1271 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit 2a897fa301f066acf82fb60546099a0de835e0f4 1 parent 1a8a5fd
jakubvrana authored
View
1  adminer/include/mysql.inc.php
@@ -68,6 +68,7 @@ function query($query, $unbuffered = false) {
return false;
} elseif ($result === true) {
$this->affected_rows = mysql_affected_rows($this->_link);
+ $this->info = mysql_info($this->_link);
return true;
}
return new Min_Result($result);
View
2  adminer/sql.inc.php
@@ -87,7 +87,7 @@
if (preg_match("~^$space*$alter_database", $query)) {
$databases = null; // clear cache
}
- echo "<p class='message'>" . lang('Query executed OK, %d row(s) affected.', $connection->affected_rows) . "\n";
+ echo "<p class='message'>" . lang('Query executed OK, %d row(s) affected.', $connection->affected_rows) . "<br>" . h($connection->info) . "\n";
}
unset($result); // free resultset
} while ($connection->next_result());
View
1  changes.txt
@@ -1,5 +1,6 @@
Adminer 2.2.2-dev:
Add Delete button to Edit page (regression from 2.0.0)
+Simplify SQL syntax error message
Adminer 2.2.1 (released 2009-11-26):
Highlight current links
Please sign in to comment.
Something went wrong with that request. Please try again.