pg_query 0.2.1 → 0.2.2
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.
- checksums.yaml +8 -8
- data/ext/pg_query/pg_query.c +7 -2
- data/lib/pg_query/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzUzODNjMjFmMDQ2ZjFjYzIxYjQyODI4M2ZiNWIyNDFlODBjYjdhMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDc2NWExNGYzZmFiNTM0ZWI2MDY2NGJhZjAzMjUxMGU1OWMwZGVhOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmEzNjFhNzc5ZThmN2MwNjA3MDA1YjliOTExYWIxYTk5MGMzOTE2NTkzYmE5
|
10
|
+
MDgzNzk2ZDM3YjM2N2Q3MzYwMjE0ZGZlYTY5YjllODQ3OWY4MzFhMGYxZDk0
|
11
|
+
MWFlZDc4Y2Y5MTU2ODk3N2I4NjgwZTk5ZWRmMGNiZDI4OGI4ZTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjBjMDBhYjU0NjhkZThjNmM1OTk3MGU4ZTVhYjU3NmIxYTVmOWFmMWY2Y2Q2
|
14
|
+
ZDA2MzhkN2VmOGQ4ZWUxMWRkYzhmYWEwZWM0YWY5YTYwMWE1ODRhZTk0YjY3
|
15
|
+
ZDRlZTkyZmY2NzdhMzFmMWVjMDJjNDY2MjAxYmU0N2ZiMmJkYjA=
|
data/ext/pg_query/pg_query.c
CHANGED
@@ -332,6 +332,8 @@ generate_normalized_query(pgssConstLocations *jstate, const char *query,
|
|
332
332
|
|
333
333
|
bool const_record_walker(Node *node, pgssConstLocations *jstate)
|
334
334
|
{
|
335
|
+
bool result;
|
336
|
+
|
335
337
|
if (node == NULL) return false;
|
336
338
|
|
337
339
|
if (IsA(node, A_Const) && ((A_Const *) node)->location >= 0)
|
@@ -353,13 +355,16 @@ bool const_record_walker(Node *node, pgssConstLocations *jstate)
|
|
353
355
|
|
354
356
|
PG_TRY();
|
355
357
|
{
|
356
|
-
|
358
|
+
result = raw_expression_tree_walker(node, const_record_walker, (void*) jstate);
|
357
359
|
}
|
358
360
|
PG_CATCH();
|
359
361
|
{
|
360
|
-
|
362
|
+
FlushErrorState();
|
363
|
+
result = false;
|
361
364
|
}
|
362
365
|
PG_END_TRY();
|
366
|
+
|
367
|
+
return result;
|
363
368
|
}
|
364
369
|
|
365
370
|
static VALUE pg_query_normalize(VALUE self, VALUE input)
|
data/lib/pg_query/version.rb
CHANGED