X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=examples%2Fconsole.pl;h=48fd5ec43ae2ff2c37babe9a076bf422893cbc77;hb=c0eaa9fd4c4b58970a8586adf1f598291b4cd9a7;hp=234c93533fdda92bfdf411ce2e516581faffb07d;hpb=f8e09b24e17bf4d16ef9c3a3a0a6f33e901fa6a8;p=dbsrgits%2FSQL-Abstract.git diff --git a/examples/console.pl b/examples/console.pl index 234c935..48fd5ec 100644 --- a/examples/console.pl +++ b/examples/console.pl @@ -8,6 +8,10 @@ my @sql = ( "SELECT a, b, c FROM foo WHERE foo.a =1 and foo.b LIKE 'station'", "SELECT * FROM (SELECT * FROM foobar) WHERE foo.a =1 and foo.b LIKE 'station'", "SELECT * FROM lolz WHERE ( foo.a =1 ) and foo.b LIKE 'station'", + "SELECT * LIMIT 5 OFFSET 5 FROM lolz ", + "SELECT * LIMIT 5 5 FROM lolz ", + "SELECT SKIP 5 FIRST 5 * FROM lolz ", + "SELECT FIRST 5 SKIP 5 * FROM lolz ", "UPDATE session SET expires = ? WHERE (id = ?)", "INSERT INTO Request (creation_date, is_private, owner_id, request) VALUES (? , ? , ? , ?)", "SELECT [screen].[id], [screen].[name], [screen].[section_id], [screen].[xtype] FROM [users_roles] [me] JOIN [roles] [role] ON [role].[id] = [me].[role_id] JOIN [roles_permissions] [role_permissions] ON [role_permissions].[role_id] = [role].[id] JOIN [permissions] [permission] ON [permission].[id] = [role_permissions].[permission_id] JOIN [permissionscreens] [permission_screens] ON [permission_screens].[permission_id] = [permission].[id] JOIN [screens] [screen] ON [screen].[id] = [permission_screens].[screen_id] WHERE ( [me].[user_id] = ? ) GROUP BY [screen].[id], [screen].[name], [screen].[section_id], [screen].[xtype]",