Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change in config.sample to rollback if query failed

  • Loading branch information...
commit 0ff0350840592f35b04dd4ac2b9f540285988e77 1 parent 6dbbec3
@nickinuse authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 config.sample.php
View
5 config.sample.php
@@ -33,11 +33,12 @@
}
function _sql_hook($sql) {
global $config;
+ if ($config['rollback'])
+ return FALSE;
if (empty($config['execute']))
return "\n".$sql;
$result = $config['adapter_query']($sql);
- if (!$result)
- {
+ if (!$result) {
echo("\n\nInvalid query: ".$config['adapter_error']()."\n");
$config['rollback']=true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.