mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
fix logger for SQL commands
This commit is contained in:
committed by
Jakub Vrana
parent
b8bea7fc56
commit
4cfe6263d9
@@ -197,6 +197,15 @@ focus(document.getElementById('username'));
|
||||
;
|
||||
}
|
||||
|
||||
/** Query printed in SQL command before execution
|
||||
* @param string query to be executed
|
||||
* @return string escaped query to be printed
|
||||
*/
|
||||
function sqlCommandQuery($query)
|
||||
{
|
||||
return shorten_utf8(trim($query), 1000);
|
||||
}
|
||||
|
||||
/** Description of a row in a table
|
||||
* @param string
|
||||
* @return string SQL expression, empty string for no description
|
||||
|
Reference in New Issue
Block a user