Skip to content

Commit 7531d7a

Browse files
committed
fix: reveal procedures and function in MySQL which are stored with correct case in mysql.proc
https://www.heidisql.com/forum.php?t=45182 Refs #2506
1 parent 7b1d106 commit 7531d7a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/dbstructures.mysql.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3360,12 +3360,12 @@ function TMySqlProvider.GetSql(AId: TQueryId): string;
33603360
);
33613361
qShowFunctionStatus: Result := IfThen(
33623362
(FServerVersion >= 50000) and (FNetType <> ntMySQL_ProxySQLAdmin),
3363-
'SHOW FUNCTION STATUS WHERE Db = LOWER(%s)',
3363+
'SHOW FUNCTION STATUS WHERE LOWER(Db) = LOWER(%s)',
33643364
''
33653365
);
33663366
qShowProcedureStatus: Result := IfThen(
33673367
(FServerVersion >= 50000) and (FNetType <> ntMySQL_ProxySQLAdmin),
3368-
'SHOW PROCEDURE STATUS WHERE Db = LOWER(%s)',
3368+
'SHOW PROCEDURE STATUS WHERE LOWER(Db) = LOWER(%s)',
33693369
''
33703370
);
33713371
qShowTriggers: Result := IfThen(

0 commit comments

Comments
 (0)