sql-testing-tools 0.2.6__py3-none-any.whl → 0.2.7__py3-none-any.whl
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.
- sql_testing_tools/TokenProcessing.py +5 -0
- {sql_testing_tools-0.2.6.dist-info → sql_testing_tools-0.2.7.dist-info}/METADATA +5 -1
- sql_testing_tools-0.2.7.dist-info/RECORD +8 -0
- sql_testing_tools-0.2.6.dist-info/RECORD +0 -8
- {sql_testing_tools-0.2.6.dist-info → sql_testing_tools-0.2.7.dist-info}/WHEEL +0 -0
- {sql_testing_tools-0.2.6.dist-info → sql_testing_tools-0.2.7.dist-info}/top_level.txt +0 -0
|
@@ -143,6 +143,11 @@ def _condition(token, alias_map, baseDict: dict):
|
|
|
143
143
|
left = _identifier(left, alias_map, baseDict)
|
|
144
144
|
right = _identifier(right, alias_map, baseDict)
|
|
145
145
|
|
|
146
|
+
if operator.value in ("!=", "<>"):
|
|
147
|
+
return f"NOT {left} LIKE {right}"
|
|
148
|
+
if operator.value in ("NOT LIKE"):
|
|
149
|
+
return f"NOT {left} LIKE {right}"
|
|
150
|
+
|
|
146
151
|
if flipAllowed and left.lower() >= right.lower():
|
|
147
152
|
left, right = right, left
|
|
148
153
|
if operator.value == ">":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: sql_testing_tools
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Description-Content-Type: text/markdown
|
|
5
5
|
Requires-Dist: sqlparse>=0.5.1
|
|
6
6
|
Requires-Dist: requests>=2.32.3
|
|
@@ -136,6 +136,10 @@ res = checkEquality()
|
|
|
136
136
|
|
|
137
137
|
### Changelog
|
|
138
138
|
|
|
139
|
+
|
|
140
|
+
##### V 0.2.7
|
|
141
|
+
- Normalize String unequality: ...<>..., ...!=..., ...NOT LIKE... --> NOT...LIKE...
|
|
142
|
+
|
|
139
143
|
##### V 0.2.6
|
|
140
144
|
- Fixed bug in checkKeywords: if keyword was present in one query and not in the other, the comparison was not performed correctly.
|
|
141
145
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
sql_testing_tools/BaseAccess.py,sha256=VcudaUKwhIF00UxZSYTQAN-6bK6K4Q1zrsSM6VoPF6o,6297
|
|
2
|
+
sql_testing_tools/Helper.py,sha256=ZJ5aT-hvRT7LPaaayupk_OyCpChQCwmIX0ip7YAS1Pc,8278
|
|
3
|
+
sql_testing_tools/TokenProcessing.py,sha256=4FWC1ZtJ33tCKG3c2UFG6uO2BadKCqCP6hIuuK_B2KQ,13761
|
|
4
|
+
sql_testing_tools/__init__.py,sha256=eihMp9aizQd5Lnegu0y57WcyCinmy4Jvp66e0fiMPU4,49
|
|
5
|
+
sql_testing_tools-0.2.7.dist-info/METADATA,sha256=yseH2cUHV5qqEokWy0sBPGaI6ZN46bUP_70PH1KEaPs,7118
|
|
6
|
+
sql_testing_tools-0.2.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
7
|
+
sql_testing_tools-0.2.7.dist-info/top_level.txt,sha256=qwEkmfJ_lYhIwcLXgfU75m0_JavVbOg96fN2zSatN3E,18
|
|
8
|
+
sql_testing_tools-0.2.7.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
sql_testing_tools/BaseAccess.py,sha256=VcudaUKwhIF00UxZSYTQAN-6bK6K4Q1zrsSM6VoPF6o,6297
|
|
2
|
-
sql_testing_tools/Helper.py,sha256=ZJ5aT-hvRT7LPaaayupk_OyCpChQCwmIX0ip7YAS1Pc,8278
|
|
3
|
-
sql_testing_tools/TokenProcessing.py,sha256=S3TCdE6XVuR1G14UeQJ4vVtWFt-xahQlHqu-utEhkro,13598
|
|
4
|
-
sql_testing_tools/__init__.py,sha256=eihMp9aizQd5Lnegu0y57WcyCinmy4Jvp66e0fiMPU4,49
|
|
5
|
-
sql_testing_tools-0.2.6.dist-info/METADATA,sha256=LqnD65nLMB_TAI0bjS1eEbq_4M1GQT6quYOqB8oMlGU,7018
|
|
6
|
-
sql_testing_tools-0.2.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
7
|
-
sql_testing_tools-0.2.6.dist-info/top_level.txt,sha256=qwEkmfJ_lYhIwcLXgfU75m0_JavVbOg96fN2zSatN3E,18
|
|
8
|
-
sql_testing_tools-0.2.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|