tsql_parser 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parsing/text_formatter.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18f0af056c66e37a5b5f541779ee7387fc5756884f5e2d302329f7c8b35b9bfe
|
4
|
+
data.tar.gz: e914e56c485ec9fc0e282f27734d36e17b8a16bb220a4288744f7e45ac263614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 565804ec4625e5bde30d5ef68d52a44d98317a803f1e4e90dedbb13f0805906ed165f9b4ac972bad845d13a41d72926344c02c8cf30a17c6b2b537a8a85eab42
|
7
|
+
data.tar.gz: c52b196c627315e281b33f4b7cb20ed0ac11d7b0290a1ead14cb45feb71b4c165e7bdf87098f9ea1c36aaa2814be38adc35251313a90bc9731e5a1df2e827690
|
@@ -195,7 +195,11 @@ module TSqlParser::Parsing
|
|
195
195
|
formatted << "\n#{tab * (tab_count + 1)}#{table}"
|
196
196
|
formatted << "#{tab * (tab_count + 2)}(#{columns})"
|
197
197
|
formatted << "#{tab * (tab_count + 1)}VALUES"
|
198
|
-
|
198
|
+
if s.end_with? ");"
|
199
|
+
formatted << "#{tab * (tab_count + 2)}(#{values}"
|
200
|
+
else
|
201
|
+
formatted << "#{tab * (tab_count + 2)}(#{values})"
|
202
|
+
end
|
199
203
|
end
|
200
204
|
formatted.join("\n") unless formatted.empty?
|
201
205
|
end
|