We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3abb42 commit 189bb7bCopy full SHA for 189bb7b
src/puppetlabs/puppetdb/pql/transform.clj
@@ -91,10 +91,12 @@
91
:false false))
92
93
(defn transform-integer
94
+ ;; 64-bit
95
+ ;; https://puppet.com/docs/puppet/5.3/lang_data_number.html#the-integer-data-type
96
([int]
- (Integer. int))
97
+ (Long. int))
98
([neg int]
- (- (Integer. int))))
99
+ (Long. (str neg int))))
100
101
(defn transform-real
102
[& args]
test/puppetlabs/puppetdb/pql_test.clj
@@ -24,6 +24,9 @@
24
["from" "nodes"
25
["and" ["=" "a" 1] ["=" "b" 2]]]
26
27
+ (format "nodes { a = %d and b = %d }" Long/MAX_VALUE Long/MIN_VALUE)
28
+ ["from" "nodes"
29
+ ["and" ["=" "a" Long/MAX_VALUE] ["=" "b" Long/MIN_VALUE]]]
30
31
"fact_contents {path = [\"foo\",\"bar\"]}"
32
["from" "fact_contents"
0 commit comments