orez 0.2.26 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cf-do/worker.d.ts.map +1 -1
- package/dist/cf-do/worker.js +9 -1
- package/dist/cf-do/worker.js.map +1 -1
- package/dist/pg-proxy-do-backend.d.ts +2 -0
- package/dist/pg-proxy-do-backend.d.ts.map +1 -1
- package/dist/pg-proxy-do-backend.js +49 -7
- package/dist/pg-proxy-do-backend.js.map +1 -1
- package/dist/pg-sqlite-compiler/catalog/seed.d.ts +67 -0
- package/dist/pg-sqlite-compiler/catalog/seed.d.ts.map +1 -0
- package/dist/pg-sqlite-compiler/catalog/seed.js +436 -0
- package/dist/pg-sqlite-compiler/catalog/seed.js.map +1 -0
- package/dist/pg-sqlite-compiler/index.d.ts +12 -0
- package/dist/pg-sqlite-compiler/index.d.ts.map +1 -0
- package/dist/pg-sqlite-compiler/index.js +59 -0
- package/dist/pg-sqlite-compiler/index.js.map +1 -0
- package/dist/pg-sqlite-compiler/passes/ast-utils.d.ts +48 -0
- package/dist/pg-sqlite-compiler/passes/ast-utils.d.ts.map +1 -0
- package/dist/pg-sqlite-compiler/passes/ast-utils.js +93 -0
- package/dist/pg-sqlite-compiler/passes/ast-utils.js.map +1 -0
- package/dist/pg-sqlite-compiler/passes/catalog.d.ts +34 -0
- package/dist/pg-sqlite-compiler/passes/catalog.d.ts.map +1 -0
- package/dist/pg-sqlite-compiler/passes/catalog.js +30 -0
- package/dist/pg-sqlite-compiler/passes/catalog.js.map +1 -0
- package/dist/pg-sqlite-compiler/passes/datetime.d.ts +21 -0
- package/dist/pg-sqlite-compiler/passes/datetime.d.ts.map +1 -0
- package/dist/pg-sqlite-compiler/passes/datetime.js +53 -0
- package/dist/pg-sqlite-compiler/passes/datetime.js.map +1 -0
- package/dist/pg-sqlite-compiler/passes/index.d.ts +21 -0
- package/dist/pg-sqlite-compiler/passes/index.d.ts.map +1 -0
- package/dist/pg-sqlite-compiler/passes/index.js +39 -0
- package/dist/pg-sqlite-compiler/passes/index.js.map +1 -0
- package/dist/pg-sqlite-compiler/passes/types.d.ts +41 -0
- package/dist/pg-sqlite-compiler/passes/types.d.ts.map +1 -0
- package/dist/pg-sqlite-compiler/passes/types.js +103 -0
- package/dist/pg-sqlite-compiler/passes/types.js.map +1 -0
- package/dist/pg-sqlite-compiler/test/oracle.d.ts +34 -0
- package/dist/pg-sqlite-compiler/test/oracle.d.ts.map +1 -0
- package/dist/pg-sqlite-compiler/test/oracle.js +204 -0
- package/dist/pg-sqlite-compiler/test/oracle.js.map +1 -0
- package/dist/pg-sqlite-compiler/types.d.ts +55 -0
- package/dist/pg-sqlite-compiler/types.d.ts.map +1 -0
- package/dist/pg-sqlite-compiler/types.js +2 -0
- package/dist/pg-sqlite-compiler/types.js.map +1 -0
- package/package.json +7 -2
- package/src/cf-do/.wrangler/cache/cf.json +1 -1
- package/src/cf-do/.wrangler/state/v3/cache/miniflare-CacheObject/metadata.sqlite-shm +0 -0
- package/src/cf-do/.wrangler/state/v3/cache/miniflare-CacheObject/metadata.sqlite-wal +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/metadata.sqlite-shm +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/metadata.sqlite-wal +0 -0
- package/src/cf-do/.wrangler/tmp/bundle-0z4CpE/middleware-insertion-facade.js +11 -0
- package/src/cf-do/.wrangler/tmp/bundle-0z4CpE/middleware-loader.entry.ts +134 -0
- package/src/cf-do/.wrangler/tmp/bundle-vYmw0E/middleware-insertion-facade.js +11 -0
- package/src/cf-do/.wrangler/tmp/bundle-vYmw0E/middleware-loader.entry.ts +134 -0
- package/src/cf-do/.wrangler/tmp/dev-cbILNo/worker.js +1059 -0
- package/src/cf-do/.wrangler/tmp/dev-cbILNo/worker.js.map +8 -0
- package/src/cf-do/.wrangler/tmp/dev-qbho19/worker.js +1059 -0
- package/src/cf-do/.wrangler/tmp/dev-qbho19/worker.js.map +8 -0
- package/src/cf-do/ARCHITECTURE.md +10 -0
- package/src/cf-do/CHAT_E2E.md +213 -0
- package/src/cf-do/worker.ts +11 -3
- package/src/cli.test.ts +3 -1
- package/src/pg-proxy-do-backend.ts +44 -10
- package/src/pg-sqlite-compiler/README.md +53 -0
- package/src/pg-sqlite-compiler/catalog/seed.ts +524 -0
- package/src/pg-sqlite-compiler/fixtures/pgsqlite/arithmetic.json +307 -0
- package/src/pg-sqlite-compiler/fixtures/pgsqlite/array.json +377 -0
- package/src/pg-sqlite-compiler/fixtures/pgsqlite/cast.json +12 -0
- package/src/pg-sqlite-compiler/fixtures/pgsqlite/catalog.json +447 -0
- package/src/pg-sqlite-compiler/fixtures/pgsqlite/create-table.json +32 -0
- package/src/pg-sqlite-compiler/fixtures/pgsqlite/datetime.json +397 -0
- package/src/pg-sqlite-compiler/fixtures/pgsqlite/enum.json +337 -0
- package/src/pg-sqlite-compiler/fixtures/pgsqlite/insert.json +337 -0
- package/src/pg-sqlite-compiler/fixtures/pgsqlite/json.json +537 -0
- package/src/pg-sqlite-compiler/fixtures/pgsqlite/misc.json +1837 -0
- package/src/pg-sqlite-compiler/index.ts +73 -0
- package/src/pg-sqlite-compiler/integration.test.ts +136 -0
- package/src/pg-sqlite-compiler/passes/ast-utils.ts +113 -0
- package/src/pg-sqlite-compiler/passes/catalog.ts +65 -0
- package/src/pg-sqlite-compiler/passes/datetime.ts +74 -0
- package/src/pg-sqlite-compiler/passes/index.ts +49 -0
- package/src/pg-sqlite-compiler/passes/types.ts +156 -0
- package/src/pg-sqlite-compiler/smoke.test.ts +69 -0
- package/src/pg-sqlite-compiler/test/catalog.test.ts +171 -0
- package/src/pg-sqlite-compiler/test/corpus.test.ts +161 -0
- package/src/pg-sqlite-compiler/test/datetime.oracle.test.ts +102 -0
- package/src/pg-sqlite-compiler/test/oracle.ts +237 -0
- package/src/pg-sqlite-compiler/test/types.test.ts +109 -0
- package/src/pg-sqlite-compiler/types.ts +63 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/0f0f3bdf0abda097eb6f1246db4657d9fc622081362d894d82c1a1ce067b05b6.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/1ddd3a4a48a11b51658444f5458a1fb175194b1d5b6a5bda20ef3fe3205b900c.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/3835f242df9728adba3d127a238793fd054ed3e51df3f60749ee744c469bf2a2.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/4aa9c80eb716cf55b8995ccf7afab0b36c683e6da07d7c37a3f9c570136036df.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/533e2fd1d6ea46e7a9a0017916ef341802d438d72583462755f2c1f8225e9bf2.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/5ffa1aced1225ecaeac6366f7586aa3de92761cdff8711d81fbd81f248076abd.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/686c3a9f0d7e59ed2ab607efd4b76d779c97cafeb3818380033bf7c7eb86c819.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/6e8214e8dcfadd0deb52d64e5e9ca85c6b329ace11193909845995396914c473.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/78d9ec9ff873d3fe3507ff53c2a6f6dfc408b4268eb0db3f2a146c0678965366.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/7eff9f0ed7e27ad0d3f9d923de0682fab1928591172c1ba336c5f79a134a5d85.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/836cda5b995b25867d722ed4f4c2292167e80351a3c6038db626648eb247dd8b.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/91ef63b112209ab30172763acd8a0935106c248f7f1bcae5545ce37a9f201551.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/a66ea4293a5f5938bc6d116edfa2522bb85bc37aea3541fbc09c3b613b9b32c0.sqlite +0 -0
- package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/ceb2ab26b80590840b65651deb6e948d3bf81565c6751f3a58752cf4bf4aecae.sqlite +0 -0
- /package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/{204a39120310d37e972c5914cfd71ad55c151bdb9e8ed289a5f8c5b052dd60e4.sqlite → 0ffaabee41a60e04dd0eb7db3073f0a40139e6a97ccd26823967acb652b89a7b.sqlite} +0 -0
|
@@ -0,0 +1,1837 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "erans/pgsqlite tests/",
|
|
3
|
+
"bucket": "misc",
|
|
4
|
+
"count": 366,
|
|
5
|
+
"cases": [
|
|
6
|
+
{
|
|
7
|
+
"name": "result_cache_test-1",
|
|
8
|
+
"sql": "ALTER TABLE ddl_test ADD COLUMN extra INTEGER DEFAULT 0",
|
|
9
|
+
"source": "result_cache_test.rs"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "result_cache_test-2",
|
|
13
|
+
"sql": "INSERT INTO ddl_test (id, data) VALUES (2, 'new')",
|
|
14
|
+
"source": "result_cache_test.rs"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "result_cache_test-3",
|
|
18
|
+
"sql": "SELECT COUNT(*) FROM dml_test",
|
|
19
|
+
"source": "result_cache_test.rs"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "numeric_debug_test-1",
|
|
23
|
+
"sql": "CREATE TABLE test_table (\n id INTEGER PRIMARY KEY,\n amount NUMERIC(5,2)\n )",
|
|
24
|
+
"source": "numeric_debug_test.rs"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "numeric_debug_test-2",
|
|
28
|
+
"sql": "SELECT * FROM __pgsqlite_numeric_constraints WHERE table_name = 'test_table'",
|
|
29
|
+
"source": "numeric_debug_test.rs"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "numeric_debug_test-3",
|
|
33
|
+
"sql": "SELECT name FROM sqlite_master WHERE type = 'trigger' AND name LIKE '__pgsqlite_numeric_%'",
|
|
34
|
+
"source": "numeric_debug_test.rs"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "numeric_debug_test-4",
|
|
38
|
+
"sql": "INSERT INTO test_table (id, amount) VALUES (1, 123.45)",
|
|
39
|
+
"source": "numeric_debug_test.rs"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "numeric_debug_test-5",
|
|
43
|
+
"sql": "INSERT INTO test_table (id, amount) VALUES (2, 123.456)",
|
|
44
|
+
"source": "numeric_debug_test.rs"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "numeric_debug_test-6",
|
|
48
|
+
"sql": "INSERT INTO test_table (id, amount) VALUES (3, 1234.56)",
|
|
49
|
+
"source": "numeric_debug_test.rs"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "profile_protocol_overhead-1",
|
|
53
|
+
"sql": "CREATE TABLE profile_simple (id INTEGER PRIMARY KEY, value TEXT)",
|
|
54
|
+
"source": "profile_protocol_overhead.rs"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "profile_protocol_overhead-2",
|
|
58
|
+
"sql": "CREATE TABLE profile_complex (\n id INTEGER PRIMARY KEY,\n text_short TEXT,\n text_long TEXT,\n int_small INTEGER,\n int_large INTEGER,\n float_val REAL,\n double_val DOUBLE PRECISION,\n bool_val BOOLEAN,\n bytes_small BYTEA,\n bytes_large BYTEA,\n numeric_val NUMERIC(19,4),\n timestamp_val TIMESTAMP\n )",
|
|
59
|
+
"source": "profile_protocol_overhead.rs"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "profile_protocol_overhead-3",
|
|
63
|
+
"sql": "INSERT INTO profile_simple (id, value) VALUES ($1, $2)",
|
|
64
|
+
"source": "profile_protocol_overhead.rs"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "profile_protocol_overhead-4",
|
|
68
|
+
"sql": "INSERT INTO profile_complex (\n id, text_short, text_long, int_small, int_large,\n float_val, double_val, bool_val, bytes_small, bytes_large,\n numeric_val, timestamp_val\n ) VALUES (\n $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12\n )",
|
|
69
|
+
"source": "profile_protocol_overhead.rs"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "profile_protocol_overhead-5",
|
|
73
|
+
"sql": "SELECT * FROM profile_simple WHERE id = $1",
|
|
74
|
+
"source": "profile_protocol_overhead.rs"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "profile_protocol_overhead-6",
|
|
78
|
+
"sql": "SELECT * FROM profile_complex WHERE id = $1",
|
|
79
|
+
"source": "profile_protocol_overhead.rs"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "profile_protocol_overhead-7",
|
|
83
|
+
"sql": "SELECT * FROM profile_complex WHERE id = $1 -- cached",
|
|
84
|
+
"source": "profile_protocol_overhead.rs"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "profile_protocol_overhead-8",
|
|
88
|
+
"sql": "DROP TABLE IF EXISTS profile_simple",
|
|
89
|
+
"source": "profile_protocol_overhead.rs"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "profile_protocol_overhead-9",
|
|
93
|
+
"sql": "DROP TABLE IF EXISTS profile_complex",
|
|
94
|
+
"source": "profile_protocol_overhead.rs"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "numeric_constraints_extended_test-1",
|
|
98
|
+
"sql": "CREATE TABLE prepared_test (\n id INTEGER PRIMARY KEY,\n amount NUMERIC(10,2),\n rate NUMERIC(5,4)\n )",
|
|
99
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "numeric_constraints_extended_test-2",
|
|
103
|
+
"sql": "INSERT INTO prepared_test (id, amount, rate) VALUES (1, 123.45, 0.9999)",
|
|
104
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "numeric_constraints_extended_test-3",
|
|
108
|
+
"sql": "INSERT INTO prepared_test (id, amount, rate) VALUES (2, 99999999.999, 0.5)",
|
|
109
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "numeric_constraints_extended_test-4",
|
|
113
|
+
"sql": "INSERT INTO prepared_test (id, amount, rate) VALUES (3, 100.00, 1.23456)",
|
|
114
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "numeric_constraints_extended_test-5",
|
|
118
|
+
"sql": "UPDATE prepared_test SET amount = 999.99 WHERE id = 1",
|
|
119
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "numeric_constraints_extended_test-6",
|
|
123
|
+
"sql": "UPDATE prepared_test SET amount = 999.999 WHERE id = 1",
|
|
124
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "numeric_constraints_extended_test-7",
|
|
128
|
+
"sql": "CREATE TABLE tx_test (\n id INTEGER PRIMARY KEY,\n balance NUMERIC(10,2)\n )",
|
|
129
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "numeric_constraints_extended_test-8",
|
|
133
|
+
"sql": "INSERT INTO tx_test VALUES (1, 1000.00)",
|
|
134
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "numeric_constraints_extended_test-9",
|
|
138
|
+
"sql": "INSERT INTO tx_test VALUES \n (2, 2000.00),\n (3, 3000.999), -- This should fail\n (4, 4000.00)",
|
|
139
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "numeric_constraints_extended_test-10",
|
|
143
|
+
"sql": "SELECT COUNT(*) FROM tx_test",
|
|
144
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "numeric_constraints_extended_test-11",
|
|
148
|
+
"sql": "CREATE TABLE error_test (\n id INTEGER PRIMARY KEY,\n amount NUMERIC(5,2)\n )",
|
|
149
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "numeric_constraints_extended_test-12",
|
|
153
|
+
"sql": "INSERT INTO error_test VALUES (1, 9999.99)",
|
|
154
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "numeric_constraints_extended_test-13",
|
|
158
|
+
"sql": "CREATE TABLE mixed_test (\n id INTEGER PRIMARY KEY,\n counter NUMERIC(5,0)\n )",
|
|
159
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "numeric_constraints_extended_test-14",
|
|
163
|
+
"sql": "INSERT INTO mixed_test VALUES (0, 100)",
|
|
164
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "numeric_constraints_extended_test-15",
|
|
168
|
+
"sql": "INSERT INTO mixed_test VALUES (1, 100000)",
|
|
169
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "numeric_constraints_extended_test-16",
|
|
173
|
+
"sql": "INSERT INTO mixed_test VALUES (2, 200)",
|
|
174
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "numeric_constraints_extended_test-17",
|
|
178
|
+
"sql": "INSERT INTO mixed_test VALUES (3, 100000)",
|
|
179
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "numeric_constraints_extended_test-18",
|
|
183
|
+
"sql": "INSERT INTO mixed_test VALUES (4, 400)",
|
|
184
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "numeric_constraints_extended_test-19",
|
|
188
|
+
"sql": "SELECT COUNT(*) FROM mixed_test WHERE counter <= 99999",
|
|
189
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "numeric_constraints_extended_test-20",
|
|
193
|
+
"sql": "CREATE TABLE prices (\n id INTEGER PRIMARY KEY,\n base_price NUMERIC(10,2),\n tax_rate NUMERIC(3,2)\n )",
|
|
194
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "numeric_constraints_extended_test-21",
|
|
198
|
+
"sql": "CREATE TABLE orders (\n id INTEGER PRIMARY KEY,\n price_id INTEGER,\n quantity INTEGER,\n total NUMERIC(12,2)\n )",
|
|
199
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "numeric_constraints_extended_test-22",
|
|
203
|
+
"sql": "INSERT INTO prices VALUES (1, 100.00, 0.15)",
|
|
204
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "numeric_constraints_extended_test-23",
|
|
208
|
+
"sql": "INSERT INTO orders \n SELECT 1, 1, 10, p.base_price * (1 + p.tax_rate) * 10\n FROM prices p WHERE p.id = 1",
|
|
209
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "numeric_constraints_extended_test-24",
|
|
213
|
+
"sql": "SELECT total::text FROM orders WHERE id = 1",
|
|
214
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "numeric_constraints_extended_test-25",
|
|
218
|
+
"sql": "INSERT INTO orders \n SELECT 2, 1, 100000, p.base_price * (1 + p.tax_rate) * 100000\n FROM prices p WHERE p.id = 1",
|
|
219
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "numeric_constraints_extended_test-26",
|
|
223
|
+
"sql": "CREATE TABLE special_test (\n id INTEGER PRIMARY KEY,\n value NUMERIC(10,2)\n )",
|
|
224
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "numeric_constraints_extended_test-27",
|
|
228
|
+
"sql": "INSERT INTO special_test VALUES (1, 1.23e2)",
|
|
229
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "numeric_constraints_extended_test-28",
|
|
233
|
+
"sql": "INSERT INTO special_test VALUES (2, 00123.45)",
|
|
234
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "numeric_constraints_extended_test-29",
|
|
238
|
+
"sql": "INSERT INTO special_test VALUES (3, +456.78)",
|
|
239
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "numeric_constraints_extended_test-30",
|
|
243
|
+
"sql": "INSERT INTO special_test VALUES (4, 0.01)",
|
|
244
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "numeric_constraints_extended_test-31",
|
|
248
|
+
"sql": "SELECT id, value::text FROM special_test ORDER BY id",
|
|
249
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "numeric_constraints_extended_test-32",
|
|
253
|
+
"sql": "CREATE TABLE defaults_test (\n id INTEGER PRIMARY KEY,\n price NUMERIC(10,2) DEFAULT 99.99,\n quantity NUMERIC(5,0) DEFAULT 1\n )",
|
|
254
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "numeric_constraints_extended_test-33",
|
|
258
|
+
"sql": "INSERT INTO defaults_test (id) VALUES (1)",
|
|
259
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "numeric_constraints_extended_test-34",
|
|
263
|
+
"sql": "INSERT INTO defaults_test (id, price) VALUES (2, 123.45)",
|
|
264
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "numeric_constraints_extended_test-35",
|
|
268
|
+
"sql": "SELECT id, price::text, quantity::text FROM defaults_test ORDER BY id",
|
|
269
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "numeric_constraints_extended_test-36",
|
|
273
|
+
"sql": "CREATE TABLE cast_test (\n id INTEGER PRIMARY KEY,\n int_val INTEGER,\n text_val TEXT,\n numeric_val NUMERIC(10,2)\n )",
|
|
274
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "numeric_constraints_extended_test-37",
|
|
278
|
+
"sql": "INSERT INTO cast_test VALUES (1, 123, '456.789', 789.01)",
|
|
279
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "numeric_constraints_extended_test-38",
|
|
283
|
+
"sql": "INSERT INTO cast_test VALUES (4, 999, '99999999.999', 100.00)",
|
|
284
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "numeric_constraints_extended_test-39",
|
|
288
|
+
"sql": "INSERT INTO cast_test (id, numeric_val) \n SELECT 2, CAST(int_val AS NUMERIC(10,2)) FROM cast_test WHERE id = 1",
|
|
289
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "numeric_constraints_extended_test-40",
|
|
293
|
+
"sql": "INSERT INTO cast_test (id, numeric_val) \n SELECT 3, CAST(text_val AS NUMERIC(10,2)) FROM cast_test WHERE id = 1",
|
|
294
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "numeric_constraints_extended_test-41",
|
|
298
|
+
"sql": "SELECT numeric_val::text FROM cast_test WHERE id = 3",
|
|
299
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "numeric_constraints_extended_test-42",
|
|
303
|
+
"sql": "INSERT INTO cast_test (id, numeric_val) \n SELECT 5, CAST(text_val AS NUMERIC(10,2)) FROM cast_test WHERE id = 4",
|
|
304
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "numeric_constraints_extended_test-43",
|
|
308
|
+
"sql": "SELECT numeric_val::text FROM cast_test WHERE id = 2",
|
|
309
|
+
"source": "numeric_constraints_extended_test.rs"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "small_value_optimization_test-1",
|
|
313
|
+
"sql": "DROP TABLE IF EXISTS small_value_test",
|
|
314
|
+
"source": "small_value_optimization_test.rs"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "small_value_optimization_test-2",
|
|
318
|
+
"sql": "CREATE TABLE small_value_test (\n id INTEGER PRIMARY KEY,\n bool_col BOOLEAN,\n small_int INTEGER,\n zero_val INTEGER,\n one_val INTEGER,\n small_float REAL\n )",
|
|
319
|
+
"source": "small_value_optimization_test.rs"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "small_value_optimization_test-3",
|
|
323
|
+
"sql": "SELECT * FROM small_value_test WHERE id < 50",
|
|
324
|
+
"source": "small_value_optimization_test.rs"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "small_value_optimization_test-4",
|
|
328
|
+
"sql": "SELECT bool_col, small_int, zero_val, one_val, small_float \n FROM small_value_test \n WHERE id < 50",
|
|
329
|
+
"source": "small_value_optimization_test.rs"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "small_value_optimization_test-5",
|
|
333
|
+
"sql": "SELECT * FROM small_value_test",
|
|
334
|
+
"source": "small_value_optimization_test.rs"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "small_value_optimization_test-6",
|
|
338
|
+
"sql": "DROP TABLE IF EXISTS small_value_correct",
|
|
339
|
+
"source": "small_value_optimization_test.rs"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "small_value_optimization_test-7",
|
|
343
|
+
"sql": "CREATE TABLE small_value_correct (\n bool_true BOOLEAN,\n bool_false BOOLEAN,\n zero INTEGER,\n one INTEGER,\n minus_one INTEGER,\n small_pos INTEGER,\n small_neg INTEGER,\n small_float REAL,\n empty_text TEXT\n )",
|
|
344
|
+
"source": "small_value_optimization_test.rs"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "small_value_optimization_test-8",
|
|
348
|
+
"sql": "INSERT INTO small_value_correct VALUES (true, false, 0, 1, -1, 42, -42, 3.25, '')",
|
|
349
|
+
"source": "small_value_optimization_test.rs"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "small_value_optimization_test-9",
|
|
353
|
+
"sql": "SELECT * FROM small_value_correct",
|
|
354
|
+
"source": "small_value_optimization_test.rs"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "small_value_optimization_test-10",
|
|
358
|
+
"sql": "DROP TABLE IF EXISTS small_value_binary",
|
|
359
|
+
"source": "small_value_optimization_test.rs"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "small_value_optimization_test-11",
|
|
363
|
+
"sql": "CREATE TABLE small_value_binary (\n id INTEGER PRIMARY KEY,\n bool_val BOOLEAN,\n int_val INTEGER,\n float_val REAL\n )",
|
|
364
|
+
"source": "small_value_optimization_test.rs"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "small_value_optimization_test-12",
|
|
368
|
+
"sql": "INSERT INTO small_value_binary VALUES (1, true, 42, 3.25)",
|
|
369
|
+
"source": "small_value_optimization_test.rs"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "small_value_optimization_test-13",
|
|
373
|
+
"sql": "SELECT * FROM small_value_binary WHERE id = $1",
|
|
374
|
+
"source": "small_value_optimization_test.rs"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "query_test-1",
|
|
378
|
+
"sql": "SELECT id, name FROM test ORDER BY id",
|
|
379
|
+
"source": "query_test.rs"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"name": "query_test-2",
|
|
383
|
+
"sql": "CREATE TABLE users (id INTEGER PRIMARY KEY, email TEXT)",
|
|
384
|
+
"source": "query_test.rs"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "query_test-3",
|
|
388
|
+
"sql": "INSERT INTO users (id, email) VALUES (1, 'test@example.com')",
|
|
389
|
+
"source": "query_test.rs"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "query_test-4",
|
|
393
|
+
"sql": "SELECT * FROM users",
|
|
394
|
+
"source": "query_test.rs"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "query_test-5",
|
|
398
|
+
"sql": "CREATE TABLE counter (value INTEGER)",
|
|
399
|
+
"source": "query_test.rs"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "query_test-6",
|
|
403
|
+
"sql": "INSERT INTO counter VALUES (0)",
|
|
404
|
+
"source": "query_test.rs"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "query_test-7",
|
|
408
|
+
"sql": "UPDATE counter SET value = 1",
|
|
409
|
+
"source": "query_test.rs"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "query_test-8",
|
|
413
|
+
"sql": "SELECT value FROM counter",
|
|
414
|
+
"source": "query_test.rs"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "query_test-9",
|
|
418
|
+
"sql": "UPDATE counter SET value = 2",
|
|
419
|
+
"source": "query_test.rs"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "row_to_json_test-1",
|
|
423
|
+
"sql": "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, age INTEGER)",
|
|
424
|
+
"source": "row_to_json_test.rs"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"name": "row_to_json_test-2",
|
|
428
|
+
"sql": "INSERT INTO users (id, name, age) VALUES (1, 'Alice', 30), (2, 'Bob', 25)",
|
|
429
|
+
"source": "row_to_json_test.rs"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "row_to_json_test-3",
|
|
433
|
+
"sql": "SELECT row_to_json(t) FROM (SELECT name, age FROM users WHERE id = 1) t",
|
|
434
|
+
"source": "row_to_json_test.rs"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "row_to_json_test-4",
|
|
438
|
+
"sql": "CREATE TABLE products (id INTEGER, name TEXT, price DECIMAL(10,2), in_stock BOOLEAN)",
|
|
439
|
+
"source": "row_to_json_test.rs"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"name": "row_to_json_test-5",
|
|
443
|
+
"sql": "INSERT INTO products (id, name, price, in_stock) VALUES (1, 'Widget', 19.99, true)",
|
|
444
|
+
"source": "row_to_json_test.rs"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "row_to_json_test-6",
|
|
448
|
+
"sql": "SELECT row_to_json(p) FROM (SELECT id, name, price, in_stock FROM products WHERE id = 1) p",
|
|
449
|
+
"source": "row_to_json_test.rs"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "row_to_json_test-7",
|
|
453
|
+
"sql": "CREATE TABLE employees (id INTEGER, first_name TEXT, last_name TEXT, salary INTEGER)",
|
|
454
|
+
"source": "row_to_json_test.rs"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "row_to_json_test-8",
|
|
458
|
+
"sql": "INSERT INTO employees (id, first_name, last_name, salary) VALUES (1, 'John', 'Doe', 50000)",
|
|
459
|
+
"source": "row_to_json_test.rs"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "row_to_json_test-9",
|
|
463
|
+
"sql": "SELECT row_to_json(e) FROM (SELECT first_name AS fname, last_name AS lname, salary FROM employees WHERE id = 1) e",
|
|
464
|
+
"source": "row_to_json_test.rs"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"name": "row_to_json_test-10",
|
|
468
|
+
"sql": "SELECT row_to_json('test value')",
|
|
469
|
+
"source": "row_to_json_test.rs"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "row_to_json_test-11",
|
|
473
|
+
"sql": "CREATE TABLE items (id INTEGER, name TEXT, category TEXT)",
|
|
474
|
+
"source": "row_to_json_test.rs"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "row_to_json_test-12",
|
|
478
|
+
"sql": "INSERT INTO items (id, name, category) VALUES (1, 'Apple', 'Fruit'), (2, 'Carrot', 'Vegetable')",
|
|
479
|
+
"source": "row_to_json_test.rs"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "row_to_json_test-13",
|
|
483
|
+
"sql": "SELECT row_to_json(i) FROM (SELECT name, category FROM items ORDER BY id) i",
|
|
484
|
+
"source": "row_to_json_test.rs"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "integration_binary_protocol_test-1",
|
|
488
|
+
"sql": "CREATE TABLE binary_basic_test (\n id INTEGER PRIMARY KEY,\n bool_val BOOLEAN,\n int_val INTEGER,\n bigint_val BIGINT,\n float_val REAL,\n double_val DOUBLE PRECISION,\n text_val TEXT\n )",
|
|
489
|
+
"source": "integration_binary_protocol_test.rs"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "integration_binary_protocol_test-2",
|
|
493
|
+
"sql": "INSERT INTO binary_basic_test (id, bool_val, int_val, bigint_val, float_val, double_val, text_val) \n VALUES ($1, $2, $3, $4, $5, $6, $7)",
|
|
494
|
+
"source": "integration_binary_protocol_test.rs"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "integration_binary_protocol_test-3",
|
|
498
|
+
"sql": "SELECT * FROM binary_basic_test ORDER BY id",
|
|
499
|
+
"source": "integration_binary_protocol_test.rs"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "integration_binary_protocol_test-4",
|
|
503
|
+
"sql": "CREATE TABLE binary_comprehensive_test (\n id INTEGER PRIMARY KEY,\n -- Core types\n bool_val BOOLEAN,\n int2_val SMALLINT,\n int4_val INTEGER,\n int8_val BIGINT,\n float4_val REAL,\n float8_val DOUBLE PRECISION,\n text_val TEXT,\n varchar_val VARCHAR(100),\n bytea_val BYTEA,\n -- Advanced types\n numeric_val NUMERIC(10, 2),\n money_val MONEY,\n -- Date/Time types\n date_val DATE,\n time_val TIME,\n timestamp_val TIMESTAMP\n )",
|
|
504
|
+
"source": "integration_binary_protocol_test.rs"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "integration_binary_protocol_test-5",
|
|
508
|
+
"sql": "SELECT * FROM binary_comprehensive_test ORDER BY id",
|
|
509
|
+
"source": "integration_binary_protocol_test.rs"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "integration_binary_protocol_test-6",
|
|
513
|
+
"sql": "SELECT id, bool_val, numeric_val, text_val FROM binary_comprehensive_test WHERE int4_val > $1",
|
|
514
|
+
"source": "integration_binary_protocol_test.rs"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"name": "integration_binary_protocol_test-7",
|
|
518
|
+
"sql": "SELECT COUNT(*) as total, MAX(int8_val) as max_bigint FROM binary_comprehensive_test",
|
|
519
|
+
"source": "integration_binary_protocol_test.rs"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "integration_binary_protocol_test-8",
|
|
523
|
+
"sql": "INSERT INTO binary_comprehensive_test (id, bool_val, text_val) VALUES ($1, $2, $3)",
|
|
524
|
+
"source": "integration_binary_protocol_test.rs"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "integration_binary_protocol_test-9",
|
|
528
|
+
"sql": "SELECT bool_val, text_val FROM binary_comprehensive_test WHERE id = $1",
|
|
529
|
+
"source": "integration_binary_protocol_test.rs"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"name": "integration_binary_protocol_test-10",
|
|
533
|
+
"sql": "INSERT INTO binary_comprehensive_test (id, text_val, numeric_val) VALUES ($1, $2, $3)",
|
|
534
|
+
"source": "integration_binary_protocol_test.rs"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "integration_binary_protocol_test-11",
|
|
538
|
+
"sql": "SELECT text_val, numeric_val FROM binary_comprehensive_test WHERE id = $1",
|
|
539
|
+
"source": "integration_binary_protocol_test.rs"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "integration_binary_protocol_test-12",
|
|
543
|
+
"sql": "SELECT COUNT(*) FROM binary_comprehensive_test",
|
|
544
|
+
"source": "integration_binary_protocol_test.rs"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"name": "integration_binary_protocol_test-13",
|
|
548
|
+
"sql": "CREATE TABLE numeric_precision_test (\n id INTEGER PRIMARY KEY,\n small_decimal NUMERIC(5, 2),\n large_decimal NUMERIC(20, 8),\n money_val MONEY\n )",
|
|
549
|
+
"source": "integration_binary_protocol_test.rs"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"name": "integration_binary_protocol_test-14",
|
|
553
|
+
"sql": "INSERT INTO numeric_precision_test (id, small_decimal, large_decimal, money_val) VALUES ($1, $2, $3, $4)",
|
|
554
|
+
"source": "integration_binary_protocol_test.rs"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "integration_binary_protocol_test-15",
|
|
558
|
+
"sql": "SELECT * FROM numeric_precision_test ORDER BY id",
|
|
559
|
+
"source": "integration_binary_protocol_test.rs"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "integration_binary_protocol_test-16",
|
|
563
|
+
"sql": "CREATE TABLE error_test (\n id INTEGER PRIMARY KEY,\n not_null_val TEXT NOT NULL\n )",
|
|
564
|
+
"source": "integration_binary_protocol_test.rs"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"name": "integration_binary_protocol_test-17",
|
|
568
|
+
"sql": "INSERT INTO error_test (id, not_null_val) VALUES ($1, $2)",
|
|
569
|
+
"source": "integration_binary_protocol_test.rs"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "uuid_test-1",
|
|
573
|
+
"sql": "SELECT gen_random_uuid() as uuid",
|
|
574
|
+
"source": "uuid_test.rs"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "uuid_test-3",
|
|
578
|
+
"sql": "SELECT uuid_generate_v4() as uuid",
|
|
579
|
+
"source": "uuid_test.rs"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "uuid_test-4",
|
|
583
|
+
"sql": "SELECT is_valid_uuid('not-a-uuid') as valid",
|
|
584
|
+
"source": "uuid_test.rs"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "uuid_test-5",
|
|
588
|
+
"sql": "INSERT INTO users (id, name) VALUES (gen_random_uuid(), 'Bob')",
|
|
589
|
+
"source": "uuid_test.rs"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "uuid_test-6",
|
|
593
|
+
"sql": "SELECT COUNT(*) as count FROM users",
|
|
594
|
+
"source": "uuid_test.rs"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "uuid_test-7",
|
|
598
|
+
"sql": "CREATE TABLE uuid_test (id TEXT COLLATE uuid)",
|
|
599
|
+
"source": "uuid_test.rs"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "uuid_test-8",
|
|
603
|
+
"sql": "SELECT COUNT(DISTINCT id) as count FROM uuid_test",
|
|
604
|
+
"source": "uuid_test.rs"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "multirow_insert_test-1",
|
|
608
|
+
"sql": "CREATE TABLE orders (\n order_id SERIAL PRIMARY KEY,\n customer_id INTEGER,\n product_id INTEGER,\n quantity INTEGER,\n order_date DATE,\n total_amount NUMERIC(10,2)\n )",
|
|
609
|
+
"source": "multirow_insert_test.rs"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"name": "multirow_insert_test-2",
|
|
613
|
+
"sql": "INSERT INTO orders (customer_id, product_id, quantity, order_date, total_amount) VALUES\n (1, 1, 1, '2025-01-01', 999.99),\n (1, 2, 2, '2025-01-01', 59.98),\n (2, 3, 1, '2025-01-02', 79.99)",
|
|
614
|
+
"source": "multirow_insert_test.rs"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"name": "multirow_insert_test-3",
|
|
618
|
+
"sql": "SELECT customer_id, order_date FROM orders ORDER BY customer_id, product_id",
|
|
619
|
+
"source": "multirow_insert_test.rs"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "numeric_single_test-1",
|
|
623
|
+
"sql": "CREATE TABLE products (\n id INTEGER PRIMARY KEY,\n price NUMERIC(10,2)\n )",
|
|
624
|
+
"source": "numeric_single_test.rs"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"name": "numeric_single_test-2",
|
|
628
|
+
"sql": "INSERT INTO products VALUES (1, 99999999.99)",
|
|
629
|
+
"source": "numeric_single_test.rs"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "numeric_single_test-3",
|
|
633
|
+
"sql": "INSERT INTO products VALUES (2, 99999999.999)",
|
|
634
|
+
"source": "numeric_single_test.rs"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "numeric_single_test-4",
|
|
638
|
+
"sql": "INSERT INTO products VALUES (3, 999999999.99)",
|
|
639
|
+
"source": "numeric_single_test.rs"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "numeric_single_test-5",
|
|
643
|
+
"sql": "SELECT id, price::text FROM products ORDER BY id",
|
|
644
|
+
"source": "numeric_single_test.rs"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"name": "numeric_single_test-6",
|
|
648
|
+
"sql": "SELECT sql FROM sqlite_master WHERE type = 'trigger' AND tbl_name = 'products' AND name LIKE '%numeric%'",
|
|
649
|
+
"source": "numeric_single_test.rs"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"name": "test_datetime_standalone-1",
|
|
653
|
+
"sql": "SELECT NOW()",
|
|
654
|
+
"source": "test_datetime_standalone.rs"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"name": "test_datetime_standalone-2",
|
|
658
|
+
"sql": "SELECT CAST(NOW() AS TEXT)",
|
|
659
|
+
"source": "test_datetime_standalone.rs"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"name": "test_datetime_standalone-3",
|
|
663
|
+
"sql": "SELECT CURRENT_TIMESTAMP()",
|
|
664
|
+
"source": "test_datetime_standalone.rs"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"name": "test_datetime_standalone-4",
|
|
668
|
+
"sql": "CREATE TABLE test_ts (id INTEGER, ts TIMESTAMPTZ)",
|
|
669
|
+
"source": "test_datetime_standalone.rs"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"name": "test_datetime_standalone-5",
|
|
673
|
+
"sql": "INSERT INTO test_ts VALUES (1, NOW())",
|
|
674
|
+
"source": "test_datetime_standalone.rs"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"name": "test_datetime_standalone-6",
|
|
678
|
+
"sql": "SELECT ts FROM test_ts WHERE id = 1",
|
|
679
|
+
"source": "test_datetime_standalone.rs"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "timezone_simple_test-1",
|
|
683
|
+
"sql": "SET TIME ZONE 'UTC'",
|
|
684
|
+
"source": "timezone_simple_test.rs"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"name": "timezone_simple_test-2",
|
|
688
|
+
"sql": "SHOW TimeZone",
|
|
689
|
+
"source": "timezone_simple_test.rs"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"name": "timezone_simple_test-3",
|
|
693
|
+
"sql": "CREATE TABLE ts_test (id INTEGER PRIMARY KEY, ts DOUBLE PRECISION)",
|
|
694
|
+
"source": "timezone_simple_test.rs"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"name": "timezone_simple_test-4",
|
|
698
|
+
"sql": "INSERT INTO ts_test (id, ts) VALUES ($1, $2)",
|
|
699
|
+
"source": "timezone_simple_test.rs"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"name": "timezone_simple_test-5",
|
|
703
|
+
"sql": "SELECT ts AT TIME ZONE 'UTC' as ts_utc FROM ts_test WHERE id = $1",
|
|
704
|
+
"source": "timezone_simple_test.rs"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"name": "datatype_compat_test-1",
|
|
708
|
+
"sql": "CREATE TABLE numeric_test (id INTEGER PRIMARY KEY, small_int SMALLINT)",
|
|
709
|
+
"source": "datatype_compat_test.rs"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"name": "datatype_compat_test-2",
|
|
713
|
+
"sql": "SELECT table_name, column_name, pg_type FROM __pgsqlite_schema WHERE table_name = 'numeric_test'",
|
|
714
|
+
"source": "datatype_compat_test.rs"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"name": "datatype_compat_test-3",
|
|
718
|
+
"sql": "INSERT INTO numeric_test VALUES (1, 32767)",
|
|
719
|
+
"source": "datatype_compat_test.rs"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "datatype_compat_test-4",
|
|
723
|
+
"sql": "SELECT small_int FROM numeric_test WHERE id = 1",
|
|
724
|
+
"source": "datatype_compat_test.rs"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"name": "datatype_compat_test-5",
|
|
728
|
+
"sql": "CREATE TABLE bool_test (\n id INTEGER PRIMARY KEY,\n flag BOOLEAN\n )",
|
|
729
|
+
"source": "datatype_compat_test.rs"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"name": "datatype_compat_test-6",
|
|
733
|
+
"sql": "INSERT INTO bool_test VALUES \n (1, true),\n (2, false),\n (3, true),\n (4, false)",
|
|
734
|
+
"source": "datatype_compat_test.rs"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "datatype_compat_test-7",
|
|
738
|
+
"sql": "SELECT id, flag FROM bool_test ORDER BY id",
|
|
739
|
+
"source": "datatype_compat_test.rs"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "datatype_compat_test-8",
|
|
743
|
+
"sql": "SELECT id FROM bool_test WHERE flag = true",
|
|
744
|
+
"source": "datatype_compat_test.rs"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"name": "datatype_compat_test-9",
|
|
748
|
+
"sql": "SELECT 1 = 1",
|
|
749
|
+
"source": "datatype_compat_test.rs"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "datatype_compat_test-10",
|
|
753
|
+
"sql": "SELECT 1 = 0",
|
|
754
|
+
"source": "datatype_compat_test.rs"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"name": "datatype_compat_test-11",
|
|
758
|
+
"sql": "CREATE TABLE null_test (\n id INTEGER PRIMARY KEY,\n nullable_int INTEGER,\n nullable_text TEXT,\n nullable_real REAL\n )",
|
|
759
|
+
"source": "datatype_compat_test.rs"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "datatype_compat_test-12",
|
|
763
|
+
"sql": "INSERT INTO null_test VALUES \n (1, NULL, NULL, NULL),\n (2, 42, 'hello', 3.14),\n (3, NULL, 'world', NULL)",
|
|
764
|
+
"source": "datatype_compat_test.rs"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"name": "datatype_compat_test-13",
|
|
768
|
+
"sql": "SELECT nullable_int, nullable_text, nullable_real FROM null_test WHERE id = 1",
|
|
769
|
+
"source": "datatype_compat_test.rs"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"name": "datatype_compat_test-14",
|
|
773
|
+
"sql": "SELECT id FROM null_test WHERE nullable_int IS NULL",
|
|
774
|
+
"source": "datatype_compat_test.rs"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"name": "datatype_compat_test-15",
|
|
778
|
+
"sql": "SELECT id FROM null_test WHERE nullable_text IS NOT NULL",
|
|
779
|
+
"source": "datatype_compat_test.rs"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"name": "datatype_compat_test-16",
|
|
783
|
+
"sql": "SELECT NULL IS NULL",
|
|
784
|
+
"source": "datatype_compat_test.rs"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "datatype_compat_test-17",
|
|
788
|
+
"sql": "SELECT COALESCE(nullable_int, 0) FROM null_test WHERE id = 1",
|
|
789
|
+
"source": "datatype_compat_test.rs"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"name": "datatype_compat_test-18",
|
|
793
|
+
"sql": "SELECT COUNT(*), COUNT(nullable_int) FROM null_test",
|
|
794
|
+
"source": "datatype_compat_test.rs"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"name": "datatype_compat_test-19",
|
|
798
|
+
"sql": "CREATE TABLE text_test (\n id INTEGER PRIMARY KEY,\n short_text TEXT,\n long_text TEXT,\n fixed_char CHAR(3),\n var_char VARCHAR(100)\n )",
|
|
799
|
+
"source": "datatype_compat_test.rs"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"name": "datatype_compat_test-20",
|
|
803
|
+
"sql": "INSERT INTO text_test VALUES \n (1, 'hello', 'This is a longer text with multiple words', 'abc', 'variable'),\n (2, '', 'Another test', 'xyz', ''),\n (3, 'test', '', '123', 'test123')",
|
|
804
|
+
"source": "datatype_compat_test.rs"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"name": "datatype_compat_test-21",
|
|
808
|
+
"sql": "SELECT short_text FROM text_test WHERE id = 1",
|
|
809
|
+
"source": "datatype_compat_test.rs"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"name": "datatype_compat_test-22",
|
|
813
|
+
"sql": "SELECT short_text FROM text_test WHERE id = 2",
|
|
814
|
+
"source": "datatype_compat_test.rs"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"name": "datatype_compat_test-23",
|
|
818
|
+
"sql": "SELECT short_text || ' ' || fixed_char FROM text_test WHERE id = 1",
|
|
819
|
+
"source": "datatype_compat_test.rs"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "datatype_compat_test-24",
|
|
823
|
+
"sql": "SELECT LENGTH(long_text) FROM text_test WHERE id = 1",
|
|
824
|
+
"source": "datatype_compat_test.rs"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"name": "datatype_compat_test-25",
|
|
828
|
+
"sql": "SELECT UPPER(short_text), LOWER(fixed_char) FROM text_test WHERE id = 1",
|
|
829
|
+
"source": "datatype_compat_test.rs"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"name": "datatype_compat_test-26",
|
|
833
|
+
"sql": "SELECT id FROM text_test WHERE long_text LIKE '%test%'",
|
|
834
|
+
"source": "datatype_compat_test.rs"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"name": "datatype_compat_test-27",
|
|
838
|
+
"sql": "CREATE TABLE datetime_test (\n id INTEGER PRIMARY KEY,\n date_col DATE,\n time_col TIME,\n timestamp_col TIMESTAMP\n )",
|
|
839
|
+
"source": "datatype_compat_test.rs"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "datatype_compat_test-28",
|
|
843
|
+
"sql": "INSERT INTO datetime_test VALUES \n (1, '2024-01-15', '14:30:00', '2024-01-15 14:30:00'),\n (2, '2024-12-31', '23:59:59', '2024-12-31 23:59:59'),\n (3, '2024-06-15', '00:00:00', '2024-06-15 00:00:00')",
|
|
844
|
+
"source": "datatype_compat_test.rs"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"name": "datatype_compat_test-29",
|
|
848
|
+
"sql": "SELECT date_col FROM datetime_test WHERE id = 1",
|
|
849
|
+
"source": "datatype_compat_test.rs"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "datatype_compat_test-30",
|
|
853
|
+
"sql": "SELECT time_col FROM datetime_test WHERE id = 1",
|
|
854
|
+
"source": "datatype_compat_test.rs"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"name": "datatype_compat_test-31",
|
|
858
|
+
"sql": "SELECT timestamp_col FROM datetime_test WHERE id = 1",
|
|
859
|
+
"source": "datatype_compat_test.rs"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"name": "datatype_compat_test-32",
|
|
863
|
+
"sql": "SELECT date('now')",
|
|
864
|
+
"source": "datatype_compat_test.rs"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"name": "datatype_compat_test-33",
|
|
868
|
+
"sql": "SELECT date('2024-01-15', '+1 day')",
|
|
869
|
+
"source": "datatype_compat_test.rs"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"name": "datatype_compat_test-34",
|
|
873
|
+
"sql": "CREATE TABLE bytea_test (\n id INTEGER PRIMARY KEY,\n data BYTEA\n )",
|
|
874
|
+
"source": "datatype_compat_test.rs"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"name": "datatype_compat_test-35",
|
|
878
|
+
"sql": "SELECT data FROM bytea_test WHERE id = 1",
|
|
879
|
+
"source": "datatype_compat_test.rs"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"name": "datatype_compat_test-36",
|
|
883
|
+
"sql": "INSERT INTO bytea_test (id, data) VALUES (2, NULL)",
|
|
884
|
+
"source": "datatype_compat_test.rs"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"name": "datatype_compat_test-37",
|
|
888
|
+
"sql": "SELECT data FROM bytea_test WHERE id = 2",
|
|
889
|
+
"source": "datatype_compat_test.rs"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "datatype_compat_test-38",
|
|
893
|
+
"sql": "SELECT LENGTH(data) FROM bytea_test WHERE id = 1",
|
|
894
|
+
"source": "datatype_compat_test.rs"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"name": "datatype_compat_test-39",
|
|
898
|
+
"sql": "SELECT 42::text",
|
|
899
|
+
"source": "datatype_compat_test.rs"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"name": "datatype_compat_test-40",
|
|
903
|
+
"sql": "SELECT CAST('123' AS INTEGER)",
|
|
904
|
+
"source": "datatype_compat_test.rs"
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"name": "datatype_compat_test-41",
|
|
908
|
+
"sql": "SELECT CAST(3.14 AS INTEGER)",
|
|
909
|
+
"source": "datatype_compat_test.rs"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "datatype_compat_test-42",
|
|
913
|
+
"sql": "SELECT 'Value: ' || 42",
|
|
914
|
+
"source": "datatype_compat_test.rs"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"name": "datatype_compat_test-43",
|
|
918
|
+
"sql": "CREATE TABLE type_test (\n id INTEGER PRIMARY KEY,\n int_col INTEGER,\n text_col TEXT,\n real_col REAL\n )",
|
|
919
|
+
"source": "datatype_compat_test.rs"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"name": "datatype_compat_test-44",
|
|
923
|
+
"sql": "INSERT INTO type_test (id, int_col) VALUES ($1, $2)",
|
|
924
|
+
"source": "datatype_compat_test.rs"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"name": "datatype_compat_test-45",
|
|
928
|
+
"sql": "INSERT INTO type_test (id, text_col) VALUES ($1, $2)",
|
|
929
|
+
"source": "datatype_compat_test.rs"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"name": "datatype_compat_test-46",
|
|
933
|
+
"sql": "INSERT INTO type_test (id, real_col) VALUES ($1, $2)",
|
|
934
|
+
"source": "datatype_compat_test.rs"
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"name": "datatype_compat_test-47",
|
|
938
|
+
"sql": "INSERT INTO type_test (id, int_col, text_col, real_col) VALUES ($1, $2, $3, $4)",
|
|
939
|
+
"source": "datatype_compat_test.rs"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"name": "datatype_compat_test-48",
|
|
943
|
+
"sql": "SELECT int_col, text_col, real_col FROM type_test WHERE id = 4",
|
|
944
|
+
"source": "datatype_compat_test.rs"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"name": "datatype_compat_test-49",
|
|
948
|
+
"sql": "SELECT 9223372036854775807",
|
|
949
|
+
"source": "datatype_compat_test.rs"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "datatype_compat_test-50",
|
|
953
|
+
"sql": "SELECT -9223372036854775808",
|
|
954
|
+
"source": "datatype_compat_test.rs"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"name": "datatype_compat_test-51",
|
|
958
|
+
"sql": "SELECT 0, 0.0, ''",
|
|
959
|
+
"source": "datatype_compat_test.rs"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"name": "single_row_insert_parsing_test-1",
|
|
963
|
+
"sql": "CREATE TABLE test_insert (\n id INTEGER PRIMARY KEY,\n text_col TEXT,\n date_col DATE\n )",
|
|
964
|
+
"source": "single_row_insert_parsing_test.rs"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"name": "single_row_insert_parsing_test-2",
|
|
968
|
+
"sql": "INSERT INTO test_insert (text_col, date_col) VALUES ('Test 1', '2025-01-01');",
|
|
969
|
+
"source": "single_row_insert_parsing_test.rs"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "single_row_insert_parsing_test-3",
|
|
973
|
+
"sql": "SELECT text_col, date_col FROM test_insert WHERE text_col = 'Test 1'",
|
|
974
|
+
"source": "single_row_insert_parsing_test.rs"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"name": "single_row_insert_parsing_test-4",
|
|
978
|
+
"sql": "INSERT INTO test_insert (text_col, date_col) VALUES ('Test 2', '2025-01-02')",
|
|
979
|
+
"source": "single_row_insert_parsing_test.rs"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"name": "single_row_insert_parsing_test-5",
|
|
983
|
+
"sql": "CREATE TABLE edge_test (\n id INTEGER PRIMARY KEY,\n text_col TEXT,\n date_col DATE\n )",
|
|
984
|
+
"source": "single_row_insert_parsing_test.rs"
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"name": "single_row_insert_parsing_test-6",
|
|
988
|
+
"sql": "INSERT INTO edge_test (text_col, date_col) VALUES ('Test 1', '2025-01-01') ;",
|
|
989
|
+
"source": "single_row_insert_parsing_test.rs"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"name": "single_row_insert_parsing_test-7",
|
|
993
|
+
"sql": "INSERT INTO edge_test (text_col, date_col) VALUES ('Test 2', '2025-01-02')\n;",
|
|
994
|
+
"source": "single_row_insert_parsing_test.rs"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"name": "single_row_insert_parsing_test-8",
|
|
998
|
+
"sql": "INSERT INTO edge_test (text_col, date_col) VALUES ('Test (with parens)', '2025-01-03');",
|
|
999
|
+
"source": "single_row_insert_parsing_test.rs"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"name": "single_row_insert_parsing_test-9",
|
|
1003
|
+
"sql": "SELECT COUNT(*) FROM edge_test",
|
|
1004
|
+
"source": "single_row_insert_parsing_test.rs"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "numeric_constraints_integration_test-1",
|
|
1008
|
+
"sql": "CREATE TABLE products (\n id INTEGER PRIMARY KEY,\n price NUMERIC(10,2),\n quantity NUMERIC(5,0),\n tax_rate NUMERIC(3,3)\n )",
|
|
1009
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"name": "numeric_constraints_integration_test-2",
|
|
1013
|
+
"sql": "INSERT INTO products VALUES (1, 9999999.99, 99999, 0.999)",
|
|
1014
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"name": "numeric_constraints_integration_test-3",
|
|
1018
|
+
"sql": "INSERT INTO products VALUES (2, 0.01, 0, 0.000)",
|
|
1019
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"name": "numeric_constraints_integration_test-4",
|
|
1023
|
+
"sql": "INSERT INTO products VALUES (3, 99999999.999, 1, 0.5)",
|
|
1024
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"name": "numeric_constraints_integration_test-5",
|
|
1028
|
+
"sql": "INSERT INTO products VALUES (4, 100.999, 1, 0.5)",
|
|
1029
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "numeric_constraints_integration_test-6",
|
|
1033
|
+
"sql": "INSERT INTO products VALUES (5, 100.00, 123.45, 0.5)",
|
|
1034
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"name": "numeric_constraints_integration_test-7",
|
|
1038
|
+
"sql": "INSERT INTO products VALUES (6, 100.00, 10, 1.000)",
|
|
1039
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"name": "numeric_constraints_integration_test-8",
|
|
1043
|
+
"sql": "CREATE TABLE accounts (\n id INTEGER PRIMARY KEY,\n balance NUMERIC(10,2)\n )",
|
|
1044
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"name": "numeric_constraints_integration_test-9",
|
|
1048
|
+
"sql": "INSERT INTO accounts VALUES (1, 1000.00)",
|
|
1049
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "numeric_constraints_integration_test-10",
|
|
1053
|
+
"sql": "UPDATE accounts SET balance = 2000.50 WHERE id = 1",
|
|
1054
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"name": "numeric_constraints_integration_test-11",
|
|
1058
|
+
"sql": "UPDATE accounts SET balance = 2000.555 WHERE id = 1",
|
|
1059
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"name": "numeric_constraints_integration_test-12",
|
|
1063
|
+
"sql": "UPDATE accounts SET balance = 99999999.999 WHERE id = 1",
|
|
1064
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "numeric_constraints_integration_test-13",
|
|
1068
|
+
"sql": "CREATE TABLE prices (\n id INTEGER PRIMARY KEY,\n two_decimal NUMERIC(10,2),\n four_decimal NUMERIC(10,4),\n no_decimal NUMERIC(10,0)\n )",
|
|
1069
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"name": "numeric_constraints_integration_test-14",
|
|
1073
|
+
"sql": "INSERT INTO prices VALUES \n (1, 123, 123, 123),\n (2, 123.40, 123.4, 123),\n (3, 123.46, 123.4568, 124)",
|
|
1074
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"name": "numeric_constraints_integration_test-15",
|
|
1078
|
+
"sql": "SELECT two_decimal::text, four_decimal::text, no_decimal::text FROM prices ORDER BY id",
|
|
1079
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"name": "numeric_constraints_integration_test-16",
|
|
1083
|
+
"sql": "CREATE TABLE nullable_test (\n id INTEGER PRIMARY KEY,\n required_amount NUMERIC(10,2) NOT NULL,\n optional_amount NUMERIC(10,2)\n )",
|
|
1084
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"name": "numeric_constraints_integration_test-17",
|
|
1088
|
+
"sql": "INSERT INTO nullable_test VALUES (1, 100.00, NULL)",
|
|
1089
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"name": "numeric_constraints_integration_test-18",
|
|
1093
|
+
"sql": "INSERT INTO nullable_test (id, required_amount, optional_amount) VALUES (2, NULL, 50.00)",
|
|
1094
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"name": "numeric_constraints_integration_test-19",
|
|
1098
|
+
"sql": "SELECT optional_amount::text FROM nullable_test WHERE id = 1",
|
|
1099
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"name": "numeric_constraints_integration_test-20",
|
|
1103
|
+
"sql": "CREATE TABLE batch_test (\n id INTEGER PRIMARY KEY,\n amount NUMERIC(8,2)\n )",
|
|
1104
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"name": "numeric_constraints_integration_test-21",
|
|
1108
|
+
"sql": "INSERT INTO batch_test VALUES \n (1, 100.00),\n (2, 200.50),\n (3, 999999.999), -- This exceeds scale\n (4, 300.00)",
|
|
1109
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"name": "numeric_constraints_integration_test-22",
|
|
1113
|
+
"sql": "SELECT COUNT(*) FROM batch_test",
|
|
1114
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"name": "numeric_constraints_integration_test-23",
|
|
1118
|
+
"sql": "INSERT INTO batch_test VALUES \n (1, 100.00),\n (2, 200.50),\n (3, 999999.99),\n (4, 300.00)",
|
|
1119
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"name": "numeric_constraints_integration_test-25",
|
|
1123
|
+
"sql": "CREATE TABLE edge_cases (\n id INTEGER PRIMARY KEY,\n tiny NUMERIC(1,0), -- Single digit\n all_scale NUMERIC(3,3), -- Only fractional part\n large NUMERIC(38,10) -- Large precision\n )",
|
|
1124
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"name": "numeric_constraints_integration_test-26",
|
|
1128
|
+
"sql": "INSERT INTO edge_cases (id, tiny) VALUES (1, 9)",
|
|
1129
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"name": "numeric_constraints_integration_test-27",
|
|
1133
|
+
"sql": "INSERT INTO edge_cases (id, tiny) VALUES (2, 10)",
|
|
1134
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"name": "numeric_constraints_integration_test-28",
|
|
1138
|
+
"sql": "UPDATE edge_cases SET all_scale = 0.999 WHERE id = 1",
|
|
1139
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"name": "numeric_constraints_integration_test-29",
|
|
1143
|
+
"sql": "INSERT INTO edge_cases (id, all_scale) VALUES (3, 1.0)",
|
|
1144
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"name": "numeric_constraints_integration_test-30",
|
|
1148
|
+
"sql": "SELECT all_scale::text, large::text FROM edge_cases WHERE id = 1",
|
|
1149
|
+
"source": "numeric_constraints_integration_test.rs"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"name": "timezone_prepared_alias_test-1",
|
|
1153
|
+
"sql": "CREATE TABLE events (id INTEGER PRIMARY KEY, event_time DOUBLE PRECISION)",
|
|
1154
|
+
"source": "timezone_prepared_alias_test.rs"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"name": "timezone_prepared_alias_test-2",
|
|
1158
|
+
"sql": "INSERT INTO events (id, event_time) VALUES ($1, $2)",
|
|
1159
|
+
"source": "timezone_prepared_alias_test.rs"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"name": "timezone_prepared_alias_test-3",
|
|
1163
|
+
"sql": "SELECT event_time AT TIME ZONE 'UTC' as utc_time FROM events WHERE id = $1",
|
|
1164
|
+
"source": "timezone_prepared_alias_test.rs"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"name": "timezone_prepared_alias_test-4",
|
|
1168
|
+
"sql": "SELECT event_time FROM events WHERE id = $1",
|
|
1169
|
+
"source": "timezone_prepared_alias_test.rs"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"name": "query_cache_test-1",
|
|
1173
|
+
"sql": "CREATE TABLE cache_test (id INTEGER PRIMARY KEY, name TEXT)",
|
|
1174
|
+
"source": "query_cache_test.rs"
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
"name": "query_cache_test-2",
|
|
1178
|
+
"sql": "INSERT INTO cache_test (id, name) VALUES (1, 'test1'), (2, 'test2')",
|
|
1179
|
+
"source": "query_cache_test.rs"
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"name": "query_cache_test-3",
|
|
1183
|
+
"sql": "SELECT id, name FROM cache_test WHERE id = 1",
|
|
1184
|
+
"source": "query_cache_test.rs"
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"name": "query_cache_test-5",
|
|
1188
|
+
"sql": "CREATE TABLE norm_test (id INTEGER PRIMARY KEY, value TEXT)",
|
|
1189
|
+
"source": "query_cache_test.rs"
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"name": "query_cache_test-6",
|
|
1193
|
+
"sql": "INSERT INTO norm_test (id, value) VALUES (1, 'test')",
|
|
1194
|
+
"source": "query_cache_test.rs"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"name": "protocol_edge_cases_test-1",
|
|
1198
|
+
"sql": "SELECT id, data FROM large_data ORDER BY id",
|
|
1199
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
"name": "protocol_edge_cases_test-2",
|
|
1203
|
+
"sql": "INSERT INTO blob_data (id, large_text) VALUES ($1, $2)",
|
|
1204
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"name": "protocol_edge_cases_test-3",
|
|
1208
|
+
"sql": "INSERT INTO blob_data (id, large_blob) VALUES ($1, $2)",
|
|
1209
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"name": "protocol_edge_cases_test-4",
|
|
1213
|
+
"sql": "SELECT large_text FROM blob_data WHERE id = 1",
|
|
1214
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
"name": "protocol_edge_cases_test-5",
|
|
1218
|
+
"sql": "SELECT large_blob FROM blob_data WHERE id = 2",
|
|
1219
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"name": "protocol_edge_cases_test-6",
|
|
1223
|
+
"sql": "CREATE TABLE format_test (\n id INTEGER PRIMARY KEY,\n num INTEGER,\n txt TEXT,\n bin BLOB\n )",
|
|
1224
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"name": "protocol_edge_cases_test-7",
|
|
1228
|
+
"sql": "INSERT INTO format_test (id, num, txt, bin) VALUES (1, 42, 'hello', x'DEADBEEF')",
|
|
1229
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"name": "protocol_edge_cases_test-8",
|
|
1233
|
+
"sql": "SELECT id, num, txt, bin FROM format_test WHERE id = $1",
|
|
1234
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"name": "protocol_edge_cases_test-9",
|
|
1238
|
+
"sql": "SELECT * FROM suspension_test ORDER BY id",
|
|
1239
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"name": "protocol_edge_cases_test-10",
|
|
1243
|
+
"sql": "CREATE TABLE null_test (\n id INTEGER PRIMARY KEY,\n opt_int INTEGER,\n opt_text TEXT,\n opt_blob BYTEA\n )",
|
|
1244
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "protocol_edge_cases_test-11",
|
|
1248
|
+
"sql": "INSERT INTO null_test (id, opt_int, opt_text, opt_blob) VALUES ($1, $2, $3, $4)",
|
|
1249
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"name": "protocol_edge_cases_test-13",
|
|
1253
|
+
"sql": "SELECT opt_int, opt_text, opt_blob FROM null_test WHERE id = 1",
|
|
1254
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
"name": "protocol_edge_cases_test-14",
|
|
1258
|
+
"sql": "SELECT opt_int, opt_text, opt_blob FROM null_test WHERE id = 2",
|
|
1259
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
"name": "protocol_edge_cases_test-15",
|
|
1263
|
+
"sql": "INSERT INTO multi_test VALUES (1, 'one'); \n INSERT INTO multi_test VALUES (2, 'two');\n SELECT * FROM multi_test ORDER BY id",
|
|
1264
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"name": "protocol_edge_cases_test-16",
|
|
1268
|
+
"sql": "SELECT COUNT(*) FROM multi_test",
|
|
1269
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"name": "protocol_edge_cases_test-17",
|
|
1273
|
+
"sql": "WITH RECURSIVE r(i) AS (\n SELECT 1\n UNION ALL\n SELECT i + 1 FROM r WHERE i < 1000000\n )\n SELECT COUNT(*) FROM r",
|
|
1274
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"name": "protocol_edge_cases_test-18",
|
|
1278
|
+
"sql": "INSERT INTO special_chars (id, content) VALUES ($1, $2)",
|
|
1279
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"name": "protocol_edge_cases_test-20",
|
|
1283
|
+
"sql": "SELECT content FROM special_chars WHERE id = $1::int4",
|
|
1284
|
+
"source": "protocol_edge_cases_test.rs"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"name": "extended_protocol_test-1",
|
|
1288
|
+
"sql": "SELECT id, name, age FROM users WHERE age > 20 ORDER BY id",
|
|
1289
|
+
"source": "extended_protocol_test.rs"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"name": "extended_protocol_test-2",
|
|
1293
|
+
"sql": "SELECT name FROM users WHERE id = $1::int4",
|
|
1294
|
+
"source": "extended_protocol_test.rs"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"name": "extended_protocol_test-3",
|
|
1298
|
+
"sql": "INSERT INTO users (id, name, age) VALUES ($1, $2, $3)",
|
|
1299
|
+
"source": "extended_protocol_test.rs"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"name": "extended_protocol_test-4",
|
|
1303
|
+
"sql": "SELECT name, age FROM users WHERE id = 3",
|
|
1304
|
+
"source": "extended_protocol_test.rs"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"name": "integration_simple_binary_test-1",
|
|
1308
|
+
"sql": "CREATE TABLE basic_binary_test (\n id INTEGER PRIMARY KEY,\n bool_val BOOLEAN,\n int4_val INTEGER,\n int8_val BIGINT,\n float8_val DOUBLE PRECISION,\n text_val TEXT,\n bytea_val BYTEA,\n json_val TEXT\n )",
|
|
1309
|
+
"source": "integration_simple_binary_test.rs"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"name": "integration_simple_binary_test-2",
|
|
1313
|
+
"sql": "INSERT INTO basic_binary_test \n (id, bool_val, int4_val, int8_val, float8_val, text_val, bytea_val, json_val) \n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)",
|
|
1314
|
+
"source": "integration_simple_binary_test.rs"
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"name": "integration_simple_binary_test-3",
|
|
1318
|
+
"sql": "SELECT * FROM basic_binary_test WHERE id = $1",
|
|
1319
|
+
"source": "integration_simple_binary_test.rs"
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"name": "integration_simple_binary_test-4",
|
|
1323
|
+
"sql": "CREATE TABLE array_binary_test (\n id INTEGER PRIMARY KEY,\n int_array INTEGER[],\n text_array TEXT[],\n bool_array BOOLEAN[]\n )",
|
|
1324
|
+
"source": "integration_simple_binary_test.rs"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"name": "integration_simple_binary_test-5",
|
|
1328
|
+
"sql": "INSERT INTO array_binary_test (id, int_array, text_array, bool_array) VALUES ($1, $2, $3, $4)",
|
|
1329
|
+
"source": "integration_simple_binary_test.rs"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"name": "integration_simple_binary_test-6",
|
|
1333
|
+
"sql": "SELECT * FROM array_binary_test WHERE id = $1",
|
|
1334
|
+
"source": "integration_simple_binary_test.rs"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"name": "integration_simple_binary_test-7",
|
|
1338
|
+
"sql": "CREATE TABLE network_binary_test (\n id INTEGER PRIMARY KEY,\n inet_val INET,\n cidr_val CIDR,\n mac_val MACADDR\n )",
|
|
1339
|
+
"source": "integration_simple_binary_test.rs"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"name": "integration_simple_binary_test-8",
|
|
1343
|
+
"sql": "INSERT INTO network_binary_test (id, inet_val, cidr_val, mac_val) VALUES ($1, $2, $3, $4)",
|
|
1344
|
+
"source": "integration_simple_binary_test.rs"
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"name": "integration_simple_binary_test-9",
|
|
1348
|
+
"sql": "SELECT * FROM network_binary_test WHERE id = $1",
|
|
1349
|
+
"source": "integration_simple_binary_test.rs"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"name": "integration_simple_binary_test-10",
|
|
1353
|
+
"sql": "CREATE TABLE null_binary_test (\n id INTEGER PRIMARY KEY,\n nullable_text TEXT,\n nullable_int INTEGER,\n nullable_bool BOOLEAN\n )",
|
|
1354
|
+
"source": "integration_simple_binary_test.rs"
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"name": "integration_simple_binary_test-11",
|
|
1358
|
+
"sql": "INSERT INTO null_binary_test (id, nullable_text, nullable_int, nullable_bool) VALUES ($1, $2, $3, $4)",
|
|
1359
|
+
"source": "integration_simple_binary_test.rs"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
"name": "integration_simple_binary_test-12",
|
|
1363
|
+
"sql": "SELECT * FROM null_binary_test WHERE id = $1",
|
|
1364
|
+
"source": "integration_simple_binary_test.rs"
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"name": "numeric_type_test-1",
|
|
1368
|
+
"sql": "CREATE TABLE numeric_test (\n id INTEGER PRIMARY KEY,\n amount NUMERIC(10,2),\n price DECIMAL(15,4)\n )",
|
|
1369
|
+
"source": "numeric_type_test.rs"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"name": "numeric_type_test-2",
|
|
1373
|
+
"sql": "INSERT INTO numeric_test (id, amount, price) VALUES (1, '123.45', '9999.9999')",
|
|
1374
|
+
"source": "numeric_type_test.rs"
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"name": "numeric_type_test-3",
|
|
1378
|
+
"sql": "INSERT INTO numeric_test (id, amount, price) VALUES (2, '0', '0.0001')",
|
|
1379
|
+
"source": "numeric_type_test.rs"
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"name": "numeric_type_test-4",
|
|
1383
|
+
"sql": "INSERT INTO numeric_test (id, amount, price) VALUES (3, '-456.78', '-1234.5678')",
|
|
1384
|
+
"source": "numeric_type_test.rs"
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"name": "numeric_type_test-5",
|
|
1388
|
+
"sql": "INSERT INTO numeric_test (id, amount, price) VALUES (4, '999999.99', '0')",
|
|
1389
|
+
"source": "numeric_type_test.rs"
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"name": "numeric_type_test-6",
|
|
1393
|
+
"sql": "SELECT id, amount::text, price::text FROM numeric_test ORDER BY id",
|
|
1394
|
+
"source": "numeric_type_test.rs"
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
"name": "numeric_type_test-7",
|
|
1398
|
+
"sql": "CREATE TABLE numeric_test (\n id INTEGER PRIMARY KEY,\n amount NUMERIC\n )",
|
|
1399
|
+
"source": "numeric_type_test.rs"
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"name": "numeric_type_test-8",
|
|
1403
|
+
"sql": "INSERT INTO numeric_test (id, amount) VALUES (1, 'not_a_number')",
|
|
1404
|
+
"source": "numeric_type_test.rs"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"name": "numeric_type_test-9",
|
|
1408
|
+
"sql": "INSERT INTO numeric_test (id, amount) VALUES (2, '123.45.67')",
|
|
1409
|
+
"source": "numeric_type_test.rs"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"name": "numeric_type_test-10",
|
|
1413
|
+
"sql": "INSERT INTO numeric_test (id, amount) VALUES (3, '12e34')",
|
|
1414
|
+
"source": "numeric_type_test.rs"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
"name": "numeric_type_test-11",
|
|
1418
|
+
"sql": "SELECT COUNT(*) FROM numeric_test",
|
|
1419
|
+
"source": "numeric_type_test.rs"
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
"name": "numeric_type_test-13",
|
|
1423
|
+
"sql": "SELECT id, amount::text FROM numeric_test ORDER BY id",
|
|
1424
|
+
"source": "numeric_type_test.rs"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"name": "numeric_type_test-14",
|
|
1428
|
+
"sql": "CREATE TABLE prices (\n id INTEGER PRIMARY KEY,\n price NUMERIC(10,2),\n quantity INTEGER\n )",
|
|
1429
|
+
"source": "numeric_type_test.rs"
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"name": "numeric_type_test-15",
|
|
1433
|
+
"sql": "INSERT INTO prices VALUES \n (1, '10.50', 5),\n (2, '25.99', 3),\n (3, '100.00', 2)",
|
|
1434
|
+
"source": "numeric_type_test.rs"
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"name": "numeric_type_test-16",
|
|
1438
|
+
"sql": "SELECT COUNT(*) FROM prices",
|
|
1439
|
+
"source": "numeric_type_test.rs"
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
"name": "numeric_type_test-17",
|
|
1443
|
+
"sql": "SELECT id, price::text, quantity FROM prices ORDER BY id",
|
|
1444
|
+
"source": "numeric_type_test.rs"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"name": "numeric_type_test-18",
|
|
1448
|
+
"sql": "SELECT (SUM(price))::text as total_price FROM prices",
|
|
1449
|
+
"source": "numeric_type_test.rs"
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
"name": "numeric_type_test-19",
|
|
1453
|
+
"sql": "SELECT (AVG(price))::text as avg_price FROM prices",
|
|
1454
|
+
"source": "numeric_type_test.rs"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"name": "numeric_type_test-20",
|
|
1458
|
+
"sql": "CREATE TABLE range_test (\n id INTEGER PRIMARY KEY,\n price_range NUMRANGE\n )",
|
|
1459
|
+
"source": "numeric_type_test.rs"
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"name": "numeric_type_test-21",
|
|
1463
|
+
"sql": "INSERT INTO range_test VALUES \n (1, '[10.50,20.99)'),\n (2, '[0,100]'),\n (3, '(-50.5,50.5)')",
|
|
1464
|
+
"source": "numeric_type_test.rs"
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"name": "numeric_type_test-22",
|
|
1468
|
+
"sql": "SELECT id, price_range::text FROM range_test ORDER BY id",
|
|
1469
|
+
"source": "numeric_type_test.rs"
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"name": "numeric_type_test-23",
|
|
1473
|
+
"sql": "CREATE TABLE precision_test (\n id INTEGER PRIMARY KEY,\n exact_two NUMERIC(10,2),\n exact_four NUMERIC(15,4),\n unlimited NUMERIC\n )",
|
|
1474
|
+
"source": "numeric_type_test.rs"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"name": "numeric_type_test-24",
|
|
1478
|
+
"sql": "INSERT INTO precision_test VALUES \n (1, 123.46, 123.4568, 123.456789),\n (2, 0.01, 0.001, 0.001),\n (3, 99999.99, 99999.9999, 999999.999999999)",
|
|
1479
|
+
"source": "numeric_type_test.rs"
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"name": "numeric_type_test-25",
|
|
1483
|
+
"sql": "SELECT exact_two::text, exact_four::text, unlimited::text FROM precision_test ORDER BY id",
|
|
1484
|
+
"source": "numeric_type_test.rs"
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
"name": "enhanced_pg_attribute_test-1",
|
|
1488
|
+
"sql": "SELECT attname, atthasdef, attidentity\n FROM pg_attribute\n WHERE attrelid = (SELECT oid FROM pg_class WHERE relname = 'products')\n ORDER BY attnum",
|
|
1489
|
+
"source": "enhanced_pg_attribute_test.rs"
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"name": "enhanced_pg_attribute_test-2",
|
|
1493
|
+
"sql": "SELECT attname, attnotnull, atthasdef, attidentity\n FROM pg_attribute\n WHERE attrelid = (SELECT oid FROM pg_class WHERE relname = 'users')\n ORDER BY attnum",
|
|
1494
|
+
"source": "enhanced_pg_attribute_test.rs"
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
"name": "enhanced_pg_attribute_test-3",
|
|
1498
|
+
"sql": "SELECT\n a.attname,\n a.attnotnull,\n a.atthasdef,\n a.attidentity,\n t.typname\n FROM pg_attribute a\n JOIN pg_type t ON a.atttypid = t.oid\n WHERE a.attrelid = (SELECT oid FROM pg_class WHERE relname = 'articles')\n AND a.attnum > 0\n ORDER BY a.attnum",
|
|
1499
|
+
"source": "enhanced_pg_attribute_test.rs"
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
"name": "enhanced_pg_attribute_test-4",
|
|
1503
|
+
"sql": "SELECT\n c.relname as table_name,\n a.attname as column_name,\n a.attnotnull as not_null,\n a.atthasdef as has_default,\n t.typname as data_type\n FROM pg_class c\n JOIN pg_attribute a ON c.oid = a.attrelid\n JOIN pg_type t ON a.atttypid = t.oid\n WHERE c.relname = 'orders'\n AND a.attnum > 0\n ORDER BY a.attnum",
|
|
1504
|
+
"source": "enhanced_pg_attribute_test.rs"
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"name": "timezone_test-3",
|
|
1508
|
+
"sql": "SET TIME ZONE 'America/New_York'",
|
|
1509
|
+
"source": "timezone_test.rs"
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"name": "timezone_test-5",
|
|
1513
|
+
"sql": "SET TIME ZONE '+05:30'",
|
|
1514
|
+
"source": "timezone_test.rs"
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
"name": "timezone_test-7",
|
|
1518
|
+
"sql": "SET search_path TO public,test",
|
|
1519
|
+
"source": "timezone_test.rs"
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"name": "timezone_test-8",
|
|
1523
|
+
"sql": "SHOW search_path",
|
|
1524
|
+
"source": "timezone_test.rs"
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
"name": "timezone_test-9",
|
|
1528
|
+
"sql": "SET statement_timeout = '5min'",
|
|
1529
|
+
"source": "timezone_test.rs"
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
"name": "timezone_test-10",
|
|
1533
|
+
"sql": "SHOW statement_timeout",
|
|
1534
|
+
"source": "timezone_test.rs"
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"name": "timezone_test-11",
|
|
1538
|
+
"sql": "SET TIME ZONE 'EST'",
|
|
1539
|
+
"source": "timezone_test.rs"
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"name": "timezone_test-12",
|
|
1543
|
+
"sql": "CREATE TABLE events (id INTEGER PRIMARY KEY, event_time TIMESTAMPTZ)",
|
|
1544
|
+
"source": "timezone_test.rs"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"name": "timezone_test-14",
|
|
1548
|
+
"sql": "SELECT event_time FROM events WHERE id = 1",
|
|
1549
|
+
"source": "timezone_test.rs"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"name": "orm_constraint_discovery_test-1",
|
|
1553
|
+
"sql": "SELECT table_name FROM information_schema.tables WHERE table_name = 'test_table'",
|
|
1554
|
+
"source": "orm_constraint_discovery_test.rs"
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"name": "orm_constraint_discovery_test-2",
|
|
1558
|
+
"sql": "SELECT column_name FROM information_schema.columns WHERE table_name = 'test_table' ORDER BY ordinal_position",
|
|
1559
|
+
"source": "orm_constraint_discovery_test.rs"
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
"name": "orm_constraint_discovery_test-3",
|
|
1563
|
+
"sql": "SELECT constraint_type FROM information_schema.table_constraints WHERE table_name = 'test_table'",
|
|
1564
|
+
"source": "orm_constraint_discovery_test.rs"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
"name": "orm_constraint_discovery_test-4",
|
|
1568
|
+
"sql": "SELECT column_name FROM information_schema.key_column_usage WHERE table_name = 'test_table'",
|
|
1569
|
+
"source": "orm_constraint_discovery_test.rs"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
"name": "orm_constraint_discovery_test-5",
|
|
1573
|
+
"sql": "SELECT table_name, column_name, data_type, is_nullable, column_default\n FROM information_schema.columns\n WHERE table_schema = 'public'\n ORDER BY table_name, ordinal_position",
|
|
1574
|
+
"source": "orm_constraint_discovery_test.rs"
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
"name": "orm_constraint_discovery_test-6",
|
|
1578
|
+
"sql": "SELECT\n tc.table_name,\n tc.constraint_name,\n tc.constraint_type,\n kcu.column_name\n FROM information_schema.table_constraints tc\n JOIN information_schema.key_column_usage kcu\n ON tc.constraint_name = kcu.constraint_name\n WHERE tc.constraint_type = 'FOREIGN KEY'\n ORDER BY tc.table_name, kcu.ordinal_position",
|
|
1579
|
+
"source": "orm_constraint_discovery_test.rs"
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
"name": "orm_constraint_discovery_test-7",
|
|
1583
|
+
"sql": "SELECT\n constraint_name,\n table_name,\n constraint_type\n FROM information_schema.table_constraints\n ORDER BY table_name, constraint_type, constraint_name",
|
|
1584
|
+
"source": "orm_constraint_discovery_test.rs"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
"name": "orm_constraint_discovery_test-8",
|
|
1588
|
+
"sql": "SELECT\n c.table_name,\n c.column_name,\n c.data_type,\n c.character_maximum_length,\n c.numeric_precision,\n c.numeric_scale,\n c.is_nullable,\n c.column_default,\n c.ordinal_position\n FROM information_schema.columns c\n WHERE c.table_name = 'users'\n ORDER BY c.ordinal_position",
|
|
1589
|
+
"source": "orm_constraint_discovery_test.rs"
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
"name": "orm_constraint_discovery_test-9",
|
|
1593
|
+
"sql": "SELECT DISTINCT\n tc.constraint_name,\n tc.constraint_type,\n kcu.column_name,\n kcu.ordinal_position\n FROM information_schema.table_constraints tc\n LEFT JOIN information_schema.key_column_usage kcu\n ON tc.constraint_name = kcu.constraint_name\n AND tc.table_name = kcu.table_name\n WHERE tc.table_name = 'articles'\n ORDER BY tc.constraint_type, kcu.ordinal_position",
|
|
1594
|
+
"source": "orm_constraint_discovery_test.rs"
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"name": "binary_protocol_types_test-1",
|
|
1598
|
+
"sql": "CREATE TABLE money_test (\n id INTEGER PRIMARY KEY,\n amount MONEY\n )",
|
|
1599
|
+
"source": "binary_protocol_types_test.rs"
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
"name": "binary_protocol_types_test-2",
|
|
1603
|
+
"sql": "INSERT INTO money_test (id, amount) VALUES ($1, $2)",
|
|
1604
|
+
"source": "binary_protocol_types_test.rs"
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
"name": "binary_protocol_types_test-3",
|
|
1608
|
+
"sql": "SELECT CAST(amount AS TEXT) FROM money_test WHERE id = $1",
|
|
1609
|
+
"source": "binary_protocol_types_test.rs"
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
"name": "binary_protocol_types_test-4",
|
|
1613
|
+
"sql": "SELECT id, CAST(amount AS TEXT) FROM money_test ORDER BY id",
|
|
1614
|
+
"source": "binary_protocol_types_test.rs"
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"name": "binary_protocol_types_test-6",
|
|
1618
|
+
"sql": "SELECT amount FROM money_test WHERE id = $1",
|
|
1619
|
+
"source": "binary_protocol_types_test.rs"
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
"name": "binary_protocol_types_test-7",
|
|
1623
|
+
"sql": "CREATE TABLE int4range_test (\n id INTEGER PRIMARY KEY,\n range_val INT4RANGE\n )",
|
|
1624
|
+
"source": "binary_protocol_types_test.rs"
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"name": "binary_protocol_types_test-8",
|
|
1628
|
+
"sql": "INSERT INTO int4range_test (id, range_val) VALUES ($1, $2)",
|
|
1629
|
+
"source": "binary_protocol_types_test.rs"
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"name": "binary_protocol_types_test-9",
|
|
1633
|
+
"sql": "SELECT CAST(range_val AS TEXT) FROM int4range_test WHERE id = $1",
|
|
1634
|
+
"source": "binary_protocol_types_test.rs"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"name": "binary_protocol_types_test-10",
|
|
1638
|
+
"sql": "SELECT id, CAST(range_val AS TEXT) FROM int4range_test ORDER BY id",
|
|
1639
|
+
"source": "binary_protocol_types_test.rs"
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"name": "binary_protocol_types_test-12",
|
|
1643
|
+
"sql": "SELECT range_val FROM int4range_test WHERE id = $1",
|
|
1644
|
+
"source": "binary_protocol_types_test.rs"
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
"name": "binary_protocol_types_test-13",
|
|
1648
|
+
"sql": "CREATE TABLE int8range_test (\n id INTEGER PRIMARY KEY,\n range_val INT8RANGE\n )",
|
|
1649
|
+
"source": "binary_protocol_types_test.rs"
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"name": "binary_protocol_types_test-14",
|
|
1653
|
+
"sql": "INSERT INTO int8range_test (id, range_val) VALUES ($1, $2)",
|
|
1654
|
+
"source": "binary_protocol_types_test.rs"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"name": "binary_protocol_types_test-15",
|
|
1658
|
+
"sql": "SELECT CAST(range_val AS TEXT) FROM int8range_test WHERE id = $1",
|
|
1659
|
+
"source": "binary_protocol_types_test.rs"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"name": "binary_protocol_types_test-16",
|
|
1663
|
+
"sql": "SELECT id, CAST(range_val AS TEXT) FROM int8range_test ORDER BY id",
|
|
1664
|
+
"source": "binary_protocol_types_test.rs"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"name": "binary_protocol_types_test-18",
|
|
1668
|
+
"sql": "SELECT range_val FROM int8range_test WHERE id = $1",
|
|
1669
|
+
"source": "binary_protocol_types_test.rs"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"name": "binary_protocol_types_test-19",
|
|
1673
|
+
"sql": "CREATE TABLE numrange_test (\n id INTEGER PRIMARY KEY,\n range_val NUMRANGE\n )",
|
|
1674
|
+
"source": "binary_protocol_types_test.rs"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"name": "binary_protocol_types_test-20",
|
|
1678
|
+
"sql": "INSERT INTO numrange_test (id, range_val) VALUES ($1, $2)",
|
|
1679
|
+
"source": "binary_protocol_types_test.rs"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"name": "binary_protocol_types_test-21",
|
|
1683
|
+
"sql": "SELECT range_val FROM numrange_test WHERE id = $1",
|
|
1684
|
+
"source": "binary_protocol_types_test.rs"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"name": "binary_protocol_types_test-22",
|
|
1688
|
+
"sql": "SELECT id, range_val FROM numrange_test ORDER BY id",
|
|
1689
|
+
"source": "binary_protocol_types_test.rs"
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"name": "binary_protocol_types_test-25",
|
|
1693
|
+
"sql": "CREATE TABLE cidr_test (\n id INTEGER PRIMARY KEY,\n cidr_val CIDR\n )",
|
|
1694
|
+
"source": "binary_protocol_types_test.rs"
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"name": "binary_protocol_types_test-26",
|
|
1698
|
+
"sql": "INSERT INTO cidr_test (id, cidr_val) VALUES ($1, $2)",
|
|
1699
|
+
"source": "binary_protocol_types_test.rs"
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
"name": "binary_protocol_types_test-27",
|
|
1703
|
+
"sql": "SELECT CAST(cidr_val AS TEXT) FROM cidr_test WHERE id = $1",
|
|
1704
|
+
"source": "binary_protocol_types_test.rs"
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"name": "binary_protocol_types_test-28",
|
|
1708
|
+
"sql": "SELECT id, CAST(cidr_val AS TEXT) FROM cidr_test ORDER BY id",
|
|
1709
|
+
"source": "binary_protocol_types_test.rs"
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
"name": "binary_protocol_types_test-30",
|
|
1713
|
+
"sql": "SELECT cidr_val FROM cidr_test WHERE id = $1",
|
|
1714
|
+
"source": "binary_protocol_types_test.rs"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"name": "binary_protocol_types_test-31",
|
|
1718
|
+
"sql": "CREATE TABLE inet_test (\n id INTEGER PRIMARY KEY,\n inet_val INET\n )",
|
|
1719
|
+
"source": "binary_protocol_types_test.rs"
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
"name": "binary_protocol_types_test-32",
|
|
1723
|
+
"sql": "INSERT INTO inet_test (id, inet_val) VALUES ($1, $2)",
|
|
1724
|
+
"source": "binary_protocol_types_test.rs"
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
"name": "binary_protocol_types_test-33",
|
|
1728
|
+
"sql": "SELECT CAST(inet_val AS TEXT) FROM inet_test WHERE id = $1",
|
|
1729
|
+
"source": "binary_protocol_types_test.rs"
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"name": "binary_protocol_types_test-34",
|
|
1733
|
+
"sql": "SELECT id, CAST(inet_val AS TEXT) FROM inet_test ORDER BY id",
|
|
1734
|
+
"source": "binary_protocol_types_test.rs"
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
"name": "binary_protocol_types_test-36",
|
|
1738
|
+
"sql": "SELECT inet_val FROM inet_test WHERE id = $1",
|
|
1739
|
+
"source": "binary_protocol_types_test.rs"
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"name": "binary_protocol_types_test-37",
|
|
1743
|
+
"sql": "CREATE TABLE macaddr_test (\n id INTEGER PRIMARY KEY,\n mac_val MACADDR\n )",
|
|
1744
|
+
"source": "binary_protocol_types_test.rs"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"name": "binary_protocol_types_test-38",
|
|
1748
|
+
"sql": "INSERT INTO macaddr_test (id, mac_val) VALUES ($1, $2)",
|
|
1749
|
+
"source": "binary_protocol_types_test.rs"
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"name": "binary_protocol_types_test-39",
|
|
1753
|
+
"sql": "SELECT CAST(mac_val AS TEXT) FROM macaddr_test WHERE id = $1",
|
|
1754
|
+
"source": "binary_protocol_types_test.rs"
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
"name": "binary_protocol_types_test-40",
|
|
1758
|
+
"sql": "SELECT id, CAST(mac_val AS TEXT) FROM macaddr_test ORDER BY id",
|
|
1759
|
+
"source": "binary_protocol_types_test.rs"
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"name": "binary_protocol_types_test-42",
|
|
1763
|
+
"sql": "SELECT mac_val FROM macaddr_test WHERE id = $1",
|
|
1764
|
+
"source": "binary_protocol_types_test.rs"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"name": "binary_protocol_types_test-43",
|
|
1768
|
+
"sql": "CREATE TABLE macaddr8_test (\n id INTEGER PRIMARY KEY,\n mac_val MACADDR8\n )",
|
|
1769
|
+
"source": "binary_protocol_types_test.rs"
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"name": "binary_protocol_types_test-44",
|
|
1773
|
+
"sql": "INSERT INTO macaddr8_test (id, mac_val) VALUES ($1, $2)",
|
|
1774
|
+
"source": "binary_protocol_types_test.rs"
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
"name": "binary_protocol_types_test-45",
|
|
1778
|
+
"sql": "SELECT mac_val FROM macaddr8_test WHERE id = $1",
|
|
1779
|
+
"source": "binary_protocol_types_test.rs"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"name": "binary_protocol_types_test-46",
|
|
1783
|
+
"sql": "SELECT id, mac_val FROM macaddr8_test ORDER BY id",
|
|
1784
|
+
"source": "binary_protocol_types_test.rs"
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"name": "binary_protocol_types_test-49",
|
|
1788
|
+
"sql": "CREATE TABLE bit_test (\n id INTEGER PRIMARY KEY,\n bit_val BIT(8)\n )",
|
|
1789
|
+
"source": "binary_protocol_types_test.rs"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"name": "binary_protocol_types_test-50",
|
|
1793
|
+
"sql": "INSERT INTO bit_test (id, bit_val) VALUES ($1, $2)",
|
|
1794
|
+
"source": "binary_protocol_types_test.rs"
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
"name": "binary_protocol_types_test-51",
|
|
1798
|
+
"sql": "SELECT bit_val FROM bit_test WHERE id = $1",
|
|
1799
|
+
"source": "binary_protocol_types_test.rs"
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"name": "binary_protocol_types_test-52",
|
|
1803
|
+
"sql": "SELECT bit_val::text FROM bit_test WHERE id = $1",
|
|
1804
|
+
"source": "binary_protocol_types_test.rs"
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"name": "binary_protocol_types_test-53",
|
|
1808
|
+
"sql": "SELECT id, bit_val::text FROM bit_test ORDER BY id",
|
|
1809
|
+
"source": "binary_protocol_types_test.rs"
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
"name": "binary_protocol_types_test-56",
|
|
1813
|
+
"sql": "CREATE TABLE bit_varying_test (\n id INTEGER PRIMARY KEY,\n bit_val BIT VARYING(32)\n )",
|
|
1814
|
+
"source": "binary_protocol_types_test.rs"
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"name": "binary_protocol_types_test-57",
|
|
1818
|
+
"sql": "INSERT INTO bit_varying_test (id, bit_val) VALUES ($1, $2)",
|
|
1819
|
+
"source": "binary_protocol_types_test.rs"
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"name": "binary_protocol_types_test-58",
|
|
1823
|
+
"sql": "SELECT bit_val FROM bit_varying_test WHERE id = $1",
|
|
1824
|
+
"source": "binary_protocol_types_test.rs"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"name": "binary_protocol_types_test-59",
|
|
1828
|
+
"sql": "SELECT bit_val::text FROM bit_varying_test WHERE id = $1",
|
|
1829
|
+
"source": "binary_protocol_types_test.rs"
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
"name": "binary_protocol_types_test-60",
|
|
1833
|
+
"sql": "SELECT id, bit_val::text FROM bit_varying_test ORDER BY id",
|
|
1834
|
+
"source": "binary_protocol_types_test.rs"
|
|
1835
|
+
}
|
|
1836
|
+
]
|
|
1837
|
+
}
|