Modify ↓
Ticket #413 (closed defect: fixed)
PDOSQLExecTask does not recognize "delimiter" command
| Reported by: | mmalone@… | Owned by: | mrook |
|---|---|---|---|
| Priority: | major | Milestone: | 2.4.0 |
| Component: | phing-core | Version: | 2.3.3 |
| Keywords: | Cc: |
Description
In MySQL, the "DELIMITER" command is often used for defining stored procedures and triggers. PDOSQLExecTask task currently sends such commands to the server, which results in a syntax error since "DELIMITER" is a client-side command and not a valid query. The attached patch adds the needed logic to the runStatements() method for handling SQL files with multiple delimiters.
Attachments
Change History
Changed 2 years ago by mmalone@…
-
attachment
delimiter.diff
added
Note: See
TracTickets for help on using
tickets.

Patch