Skip to content

Instantly share code, notes, and snippets.

@ieure
Created July 2, 2014 21:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ieure/013445d447b7d9ca7b8d to your computer and use it in GitHub Desktop.
Save ieure/013445d447b7d9ca7b8d to your computer and use it in GitHub Desktop.
lmao=# CREATE TABLE "DELETE * FROM users" ("TRUNCATE TABLE" TEXT NOT NULL, "DROP DATABASE" TEXT NOT NULL);
lmao=# INSERT INTO "DELETE * FROM users" ("TRUNCATE TABLE", "DROP DATABASE") VALUES ('lol', 'wtf');
lmao=# SELECT * FROM "DELETE * FROM users";
TRUNCATE TABLE | DROP DATABASE
----------------+---------------
lol | wtf
(1 row)
lmao=#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment