views => [
{
name => 'email_list',
- sql => "SELECT email FROM Basic WHERE email IS NOT NULL",
+ sql => "SELECT email FROM Basic WHERE (email IS NOT NULL)",
fields => ['email'],
extra => {
foo => "bar",
CREATE INDEX titleindex ON Basic ( title );
CREATE VIEW email_list AS
-SELECT email FROM Basic WHERE email IS NOT NULL;
+SELECT email FROM Basic WHERE (email IS NOT NULL);
CREATE TRIGGER foo_trigger after insert ON Basic REFERENCING OLD AS oldrow NEW AS newrow FOR EACH ROW MODE DB2SQL update modified=timestamp();
'CREATE INDEX titleindex ON Basic ( title );',
'CREATE VIEW email_list AS
-SELECT email FROM Basic WHERE email IS NOT NULL;',
+SELECT email FROM Basic WHERE (email IS NOT NULL);',
'CREATE TRIGGER foo_trigger after insert ON Basic REFERENCING OLD AS oldrow NEW AS newrow FOR EACH ROW MODE DB2SQL update modified=timestamp();',
DROP VIEW "email_list";
CREATE VIEW "email_list" ( "email" ) AS (
- SELECT email FROM Basic WHERE email IS NOT NULL
+ SELECT email FROM Basic WHERE (email IS NOT NULL)
);
ALTER TABLE "Basic" ADD FOREIGN KEY ("another_id")
DROP VIEW IF EXISTS email_list;
CREATE VIEW email_list AS
- SELECT email FROM Basic WHERE email IS NOT NULL;
+ SELECT email FROM Basic WHERE (email IS NOT NULL);
DROP TRIGGER IF EXISTS foo_trigger;
)',
'DROP VIEW IF EXISTS email_list;
CREATE VIEW email_list AS
- SELECT email FROM Basic WHERE email IS NOT NULL',
+ SELECT email FROM Basic WHERE (email IS NOT NULL)',
'DROP TRIGGER IF EXISTS foo_trigger',
'CREATE TRIGGER foo_trigger after insert on Basic BEGIN update modified=timestamp(); END',
'DROP TRIGGER IF EXISTS bar_trigger_insert',
PRIMARY KEY (id)
)',
'CREATE VIEW email_list AS
-SELECT email FROM Basic WHERE email IS NOT NULL',
+SELECT email FROM Basic WHERE (email IS NOT NULL)',
'ALTER TABLE Basic ADD CONSTRAINT Basic_another_id_fk FOREIGN KEY (another_id) REFERENCES Another (id)',
'CREATE OR REPLACE TRIGGER ai_Basic_id
BEFORE INSERT ON Basic
);
CREATE VIEW email_list AS
-SELECT email FROM Basic WHERE email IS NOT NULL;
+SELECT email FROM Basic WHERE (email IS NOT NULL);
ALTER TABLE Basic ADD CONSTRAINT Basic_another_id_fk01 FOREIGN KEY (another_id) REFERENCES Another (id);
<views>
<view name="email_list" fields="email" order="1">
- <sql>SELECT email FROM Basic WHERE email IS NOT NULL</sql>
+ <sql>SELECT email FROM Basic WHERE (email IS NOT NULL)</sql>
<extra foo="bar" hello="world" bar="baz" />
</view>
</views>