mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 02:54:28 +02:00
Strip trailing spaces
This commit is contained in:
@@ -364,7 +364,8 @@ function create_trigger($on, $row) {
|
|||||||
. idf_escape($row["Trigger"])
|
. idf_escape($row["Trigger"])
|
||||||
. ($jush == "mssql" ? $on . $timing_event : $timing_event . $on)
|
. ($jush == "mssql" ? $on . $timing_event : $timing_event . $on)
|
||||||
. rtrim(" $row[Type]\n$row[Statement]", ";")
|
. rtrim(" $row[Type]\n$row[Statement]", ";")
|
||||||
. ";";
|
. ";"
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Generate SQL query for creating routine
|
/** Generate SQL query for creating routine
|
||||||
@@ -388,7 +389,8 @@ function create_routine($routine, $row) {
|
|||||||
. (isset($_GET["function"]) ? " RETURNS" . process_type($row["returns"], "CHARACTER SET") : "")
|
. (isset($_GET["function"]) ? " RETURNS" . process_type($row["returns"], "CHARACTER SET") : "")
|
||||||
. ($row["language"] ? " LANGUAGE $row[language]" : "")
|
. ($row["language"] ? " LANGUAGE $row[language]" : "")
|
||||||
. rtrim("\n$row[definition]", ";")
|
. rtrim("\n$row[definition]", ";")
|
||||||
. ";";
|
. ";"
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Remove current user definer from SQL command
|
/** Remove current user definer from SQL command
|
||||||
|
Reference in New Issue
Block a user