Skip to content

Instantly share code, notes, and snippets.

View vojtechkral's full-sized avatar

Vojtech Kral vojtechkral

View GitHub Profile
@vojtechkral
vojtechkral / poly.rs.sql
Created January 11, 2024 01:37
SQL Rust polyglot
select !( --); /*
0);
-- */ pub const QUERY_1: &str = r##"
SELECT foo, bar FROM baz WHERE foo > 10;
-- "##; pub const QUERY_2: &str = r##"
DELETE FROM baz where foo > 9001;