-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathquery.sql
More file actions
35 lines (27 loc) · 790 Bytes
/
query.sql
File metadata and controls
35 lines (27 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-- Query to test escaping in generated Go.
-- name: Backtick :one
SELECT '`';
-- Query to test escaping in generated Go.
-- name: BacktickQuoteBacktick :one
SELECT '`"`';
-- Query to test escaping in generated Go.
-- name: BacktickNewline :one
SELECT '`
';
-- Query to test escaping in generated Go.
-- name: BacktickDoubleQuote :one
SELECT '`"';
-- Query to test escaping in generated Go.
-- name: BacktickBackslashN :one
SELECT '`\n';
-- Illegal names.
-- name: IllegalNameSymbols :one
SELECT '`\n' as "$", pggen.arg('@hello world!') as "foo.bar!@#$%&*()""--+";
-- Space after pggen.arg
-- name: SpaceAfter :one
SELECT pggen.arg ('space');
-- Enum named 123.
-- name: BadEnumName :one
SELECT 'inconvertible_enum_name'::"123";
-- name: GoKeyword :one
SELECT pggen.arg('go')::text;