We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8dbcf commit 64ffe88Copy full SHA for 64ffe88
tests/Builder/CreateStatementTest.php
@@ -271,6 +271,18 @@ public function testBuilderView()
271
'SELECT id, first_name FROM employee WHERE id = 1 ',
272
$stmt->build()
273
);
274
+
275
+ $parser = new Parser(
276
+ 'CREATE OR REPLACE VIEW myView (vid, vfirstname) AS ' .
277
+ 'SELECT id, first_name FROM employee WHERE id = 1'
278
+ );
279
+ $stmt = $parser->statements[0];
280
281
+ $this->assertEquals(
282
283
+ 'SELECT id, first_name FROM employee WHERE id = 1 ',
284
+ $stmt->build()
285
286
}
287
288
public function testBuilderTrigger()
0 commit comments