[DBIx-Class-Devel] [dbsrgits/sql-translator] MySQL Parser understands VIEWs with a field list. (#87)
Dagfinn Ilmari Mannsåker
notifications at github.com
Mon Apr 10 16:16:33 GMT 2017
ilmari commented on this pull request.
> @@ -326,7 +326,7 @@ create : CREATE PROCEDURE NAME not_delimiter "$delimiter"
PROCEDURE : /procedure/i
| /function/i
-create : CREATE or_replace(?) create_view_option(s?) /view/i NAME /as/i view_select_statement "$delimiter"
+create : CREATE or_replace(?) create_view_option(s?) /view/i NAME parens_field_list(?) /as/i view_select_statement "$delimiter"
Sorry, I misread your statement, ignore the previous comment. It'd be easier to just store the fields in the `%views` hash and use that if present instead of the alias list in the `->add_view` call in `sub parse { … }`.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/sql-translator/pull/87#discussion_r110699014
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20170410/ef21b755/attachment.htm>
More information about the DBIx-Class-Devel
mailing list