diff options
Diffstat (limited to 'src/db.php')
| -rw-r--r-- | src/db.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -177,7 +177,7 @@ function DBClose($c) { //$sql eh a instrucao sql //$txt eh um pequeno texto descrevendo o que esta sendo feito no sql function DBExecNonStop($conn,$sql,$txt='') { - if($txt=='') $txt='unknown at '.getFunctionName(); + if($txt=='') $txt='unknown at '. getFunctionName(); $result = @DB_pg_exec ($conn, $sql); if (!$result) { LOGLevel("Unable to exec SQL in the database ($txt). " . @@ -191,7 +191,8 @@ function DBExecNonStop($conn,$sql,$txt='') { //$sql eh a instrucao sql //$txt eh um pequeno texto descrevendo o que esta sendo feito no sql function DBExec($conn,$sql,$txt='') { - if($txt=='') $txt='unknown at '.getFunctionName(); + if($txt=='') $txt='unknown at '. getFunctionName(); + LOGLevel("DBExec: " . $sql, 3, false); $result = DB_pg_exec ($conn, $sql); if (!$result) { LOGError("Unable to exec SQL in the database ($txt). " . |