sql-testing-tools 0.2.6__tar.gz → 0.2.8__tar.gz
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-0.2.6 → sql_testing_tools-0.2.8}/PKG-INFO +7 -1
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/README.md +6 -0
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/setup.py +1 -1
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools/TokenProcessing.py +9 -0
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools.egg-info/PKG-INFO +7 -1
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/setup.cfg +0 -0
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools/BaseAccess.py +0 -0
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools/Helper.py +0 -0
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools/__init__.py +0 -0
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools.egg-info/SOURCES.txt +0 -0
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools.egg-info/dependency_links.txt +0 -0
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools.egg-info/requires.txt +0 -0
- {sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: sql_testing_tools
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.8
|
|
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,12 @@ res = checkEquality()
|
|
|
136
136
|
|
|
137
137
|
### Changelog
|
|
138
138
|
|
|
139
|
+
##### V 0.2.7
|
|
140
|
+
- Convert
|
|
141
|
+
|
|
142
|
+
##### V 0.2.7
|
|
143
|
+
- Normalize String unequality: ...<>..., ...!=..., ...NOT LIKE... --> NOT...LIKE...
|
|
144
|
+
|
|
139
145
|
##### V 0.2.6
|
|
140
146
|
- Fixed bug in checkKeywords: if keyword was present in one query and not in the other, the comparison was not performed correctly.
|
|
141
147
|
|
|
@@ -126,6 +126,12 @@ res = checkEquality()
|
|
|
126
126
|
|
|
127
127
|
### Changelog
|
|
128
128
|
|
|
129
|
+
##### V 0.2.7
|
|
130
|
+
- Convert
|
|
131
|
+
|
|
132
|
+
##### V 0.2.7
|
|
133
|
+
- Normalize String unequality: ...<>..., ...!=..., ...NOT LIKE... --> NOT...LIKE...
|
|
134
|
+
|
|
129
135
|
##### V 0.2.6
|
|
130
136
|
- Fixed bug in checkKeywords: if keyword was present in one query and not in the other, the comparison was not performed correctly.
|
|
131
137
|
|
|
@@ -143,6 +143,15 @@ 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.lower()} LIKE {right}"
|
|
148
|
+
if operator.value in ("NOT LIKE"):
|
|
149
|
+
return f"NOT {left.lower()} LIKE {right}"
|
|
150
|
+
if operator.value in ("=") and "%" not in right and "_" not in right:
|
|
151
|
+
return f"{left.lower()} LIKE {right}"
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
146
155
|
if flipAllowed and left.lower() >= right.lower():
|
|
147
156
|
left, right = right, left
|
|
148
157
|
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.8
|
|
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,12 @@ res = checkEquality()
|
|
|
136
136
|
|
|
137
137
|
### Changelog
|
|
138
138
|
|
|
139
|
+
##### V 0.2.7
|
|
140
|
+
- Convert
|
|
141
|
+
|
|
142
|
+
##### V 0.2.7
|
|
143
|
+
- Normalize String unequality: ...<>..., ...!=..., ...NOT LIKE... --> NOT...LIKE...
|
|
144
|
+
|
|
139
145
|
##### V 0.2.6
|
|
140
146
|
- Fixed bug in checkKeywords: if keyword was present in one query and not in the other, the comparison was not performed correctly.
|
|
141
147
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sql_testing_tools-0.2.6 → sql_testing_tools-0.2.8}/sql_testing_tools.egg-info/top_level.txt
RENAMED
|
File without changes
|