sql_matchers 1.0.0.pre.rc.3 → 1.0.0.pre.rc.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sql_matchers/normalizers/sql.rb +1 -1
- data/lib/sql_matchers/version.rb +1 -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: 66c3f332209488bc1c19cfa7eba77f74ac7b42d3c7275ed55a9c6cc29376950f
|
4
|
+
data.tar.gz: cde1fe3383dbadd8abec952b59c6c606ac026790d7ba7a1d98b667841685439c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d88276514b6b24f47a9230fe7a4337f45b138a5b79ff3579f5369179075c7ada5394f96d33aa5e94622dc2dce84c7a916db3a33247e236326c40bf1e77e875fd
|
7
|
+
data.tar.gz: 905ed471e547452d52eb00bec72ab6e6cf03ef015194c784902c0ee6ef72249cb973bb486518324843981fdfd6d5bbe8c7414ac307f3396730f9aa0dae2f7077
|
@@ -5,8 +5,8 @@ require 'anbt-sql-formatter/formatter'
|
|
5
5
|
module SqlMatchers
|
6
6
|
module Normalizers
|
7
7
|
class Sql
|
8
|
+
SELECT_STAR_RE = /[`"]?(\w+)[`"]?\s{,1}\.\s{,1}\*/
|
8
9
|
QUOTED_IDENT_RE = /[`"](\w+)[`"]/
|
9
|
-
SELECT_STAR_RE = /[`"]?(\w+)[`"]?\s{,1}\*/
|
10
10
|
|
11
11
|
def normalize(sql) = +sql.gsub(SELECT_STAR_RE, '\1.*')
|
12
12
|
.gsub(QUOTED_IDENT_RE, '\1')
|
data/lib/sql_matchers/version.rb
CHANGED