CC: | josediazseng [...] gmx.de |
Subject: | SQLite parser does not handle multi-word ON DELETE/UPDATE actions |
I was playing around with sqlt-graph to generate a graph based on the
DBICTest schema included in the DBIx::Class distribution 0.08209. The
source SQL script for SQLite had been written by create_ddl_dir.
The SQL script contains "ON DELETE SET NULL" actions, which
SQL::Translator::Parser::SQLite cannot handle since it expects ON DELETE
and ON UPDATE actions specified by a single word. So, for SQLite the
actions "RESTRICT" AND "CASCADE" are parsed correctly, but not "NO
ACTION", "SET NULL" and "SET DEFAULT".