[DBIx-Class-Devel] [dbsrgits/sql-translator] SQL::Translator::Parser::Oracle fails to parse DROP statement (#89)

Trent Fisher notifications at github.com
Thu Jan 3 23:55:26 GMT 2019


I just happened upon this problem.  I boiled it down to this reproduction:

```
$  echo "drop table foo;" |sqlt -f Oracle -t SQLite
       ERROR (line 1): Invalid statement: Was expecting remark, or run, or
                       prompt, or create, or table comment, or comment on
                       table, or comment on column, or alter, or drop
Error: translate: Error with parser 'SQL::Translator::Parser::Oracle': Parse failed.
```
Replace "Oracle" with "SQLite" and it works.

Changing WORD(s) to WORD in the line noted previously made it work, though I'm not sure that's the correct solution.

-- 
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/issues/89#issuecomment-451315983
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20190103/7ccea837/attachment.htm>


More information about the DBIx-Class-Devel mailing list