niceql 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/niceql.rb +1 -1
- data/lib/niceql/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1abb2f5e4e5f877461b9ffc00fdd4c443be900e
|
4
|
+
data.tar.gz: a14bdab780abdb5f9f70b7f3830787a193900d6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b15bfd9c83732a44df015a9c04c19698fddc1c4dc8a036b879499de8771c0d2c1991f2ca283e8a001837db005cbf9d81bd3bb08ed7dd3ad12714a397b4a9a162
|
7
|
+
data.tar.gz: 9ac6a5b8dbb7d70f9935fc8c6f750178d14371d507179cc59c1ae3f792206cf8e4028593d1a9079f883c1d9cf31dfcba4a5ef1a62561c2dac614bf7cbe0ed729
|
data/lib/niceql.rb
CHANGED
@@ -52,7 +52,7 @@ module Niceql
|
|
52
52
|
|
53
53
|
def self.prettify_pg_err(err)
|
54
54
|
err_line_num = err[/LINE \d+/][5..-1].to_i
|
55
|
-
start_sql_line = err.lines[3][/HINT|DETAIL/] ? 4 : 3
|
55
|
+
start_sql_line = err.lines[3][/(HINT|DETAIL)/] ? 4 : 3
|
56
56
|
err_body = err.lines[start_sql_line..-1]
|
57
57
|
err_line = StringColorize.colorize_err( err_body[err_line_num-1] )
|
58
58
|
|
data/lib/niceql/version.rb
CHANGED