['SELECT * FROM foo'],
'simple select';
-dq_sql_is
- Join(
- Select([ Identifier('*') ], Identifier('foo')),
- Identifier('bar'),
- perl_operator('==', Identifier('foo', 'x'), Identifier('bar', 'y'))
- ),
- ['SELECT * FROM foo JOIN bar ON foo.x = bar.y'],
- 'join on with dots';
+{
+ # should these both be allowed, and result in the same SQL?
+
+ dq_sql_is
+ Join(
+ Select([ Identifier('*') ], Identifier('foo')),
+ Identifier('bar'),
+ perl_operator('==', Identifier('foo', 'x'), Identifier('bar', 'y'))
+ ),
+ ['SELECT * FROM foo JOIN bar ON foo.x = bar.y'],
+ 'join on with dots (Join Select)';
+
+ dq_sql_is
+ Select(
+ [ Identifier('*') ],
+ Join(
+ Identifier('foo'),
+ Identifier('bar'),
+ perl_operator('==', Identifier('foo', 'x'), Identifier('bar', 'y'))
+ ),
+ ),
+ ['SELECT * FROM foo JOIN bar ON foo.x = bar.y'],
+ 'join on with dots (Select Join)';
+}
dq_sql_is
Where(