Log the sql before running it
parent
894467cdef
commit
6b6fdc7cee
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue