Log the sql before running it

pull/2077/head
Isaac Connor 2018-02-09 06:07:40 -08:00
parent 894467cdef
commit 6b6fdc7cee
1 changed files with 7 additions and 1 deletions

View File

@ -132,7 +132,13 @@ function dbQuery( $sql, $params=NULL ) {
return NULL;
}
} else {
$result = $dbConn->query( $sql );
if ( defined('ZM_DB_DEBUG') ) {
if ( $params )
Warning("SQL: $sql" . implode(',',$params) );
else
Warning("SQL: $sql:" );
}
$result = $dbConn->query($sql);
}
if ( defined('ZM_DB_DEBUG') ) {
if ( $params )