sql-error-categorizer 0.2.2__py3-none-any.whl → 0.2.3__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_error_categorizer/detectors/logical.py +3 -2
- {sql_error_categorizer-0.2.2.dist-info → sql_error_categorizer-0.2.3.dist-info}/METADATA +2 -2
- {sql_error_categorizer-0.2.2.dist-info → sql_error_categorizer-0.2.3.dist-info}/RECORD +5 -5
- {sql_error_categorizer-0.2.2.dist-info → sql_error_categorizer-0.2.3.dist-info}/WHEEL +0 -0
- {sql_error_categorizer-0.2.2.dist-info → sql_error_categorizer-0.2.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -448,8 +448,9 @@ class LogicalErrorDetector(BaseDetector):
|
|
|
448
448
|
if extraneous_columns or missing_columns:
|
|
449
449
|
return results # skip AS check if column count is already wrong
|
|
450
450
|
|
|
451
|
-
|
|
452
|
-
|
|
451
|
+
# only consider columns that are actually aliased
|
|
452
|
+
expected_aliases: set[str] = set.intersection(*[set(col.name for col in sol.main_query.output.columns if col.name != col.real_name and not col.name.startswith('_')) for sol in self.solutions])
|
|
453
|
+
provided_aliases: set[str] = set(col.name for col in self.query.main_query.output.columns if col.name != col.real_name and not col.name.startswith('_'))
|
|
453
454
|
|
|
454
455
|
missing_aliases = expected_aliases - provided_aliases
|
|
455
456
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sql_error_categorizer
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: This project analyses SQL statements and labels possible errors or complications.
|
|
5
5
|
Project-URL: Repository, https://github.com/DavidePonzini/sql_error_categorizer
|
|
6
6
|
Project-URL: Documentation, https://sql-error-categorizer.readthedocs.io/en/latest/index.html
|
|
@@ -17,7 +17,7 @@ Requires-Dist: pyyaml
|
|
|
17
17
|
Requires-Dist: sql-error-taxonomy
|
|
18
18
|
Requires-Dist: sqlglot
|
|
19
19
|
Requires-Dist: sqlparse
|
|
20
|
-
Requires-Dist: sqlscope
|
|
20
|
+
Requires-Dist: sqlscope>=1.0.14
|
|
21
21
|
Requires-Dist: z3-solver
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
|
|
@@ -2,10 +2,10 @@ sql_error_categorizer/__init__.py,sha256=L4wrfeTr84RU8hDZnmu0_ae0whPfHqNKYsO-wvk
|
|
|
2
2
|
sql_error_categorizer/detectors/__init__.py,sha256=Ph2qu8nvrXcEXStp6fpgXcMESeXUS9UckX878sFym_g,3680
|
|
3
3
|
sql_error_categorizer/detectors/base.py,sha256=8KbTE0R8XMU_u9MNwYCOoA-ie1ZIW3GbLQuLQL_mfAQ,1360
|
|
4
4
|
sql_error_categorizer/detectors/complications.py,sha256=rDKN083o4qq9ErIBqFecTf8YkrkAS5rC51wGwJJV8es,19756
|
|
5
|
-
sql_error_categorizer/detectors/logical.py,sha256=
|
|
5
|
+
sql_error_categorizer/detectors/logical.py,sha256=a9RipA-5MTMfxlOkbQ0L532LmicxaoKquHD6SA7D578,31997
|
|
6
6
|
sql_error_categorizer/detectors/semantic.py,sha256=h4j3AZI2HEMxXa3BOJ1fWDO6K4BiQ8dHKNcO-tRIHwU,19671
|
|
7
7
|
sql_error_categorizer/detectors/syntax.py,sha256=-xGlGr6d4PiQLC75tWVBVxy-8KyGyUKbHGkMrpvpdoM,54629
|
|
8
|
-
sql_error_categorizer-0.2.
|
|
9
|
-
sql_error_categorizer-0.2.
|
|
10
|
-
sql_error_categorizer-0.2.
|
|
11
|
-
sql_error_categorizer-0.2.
|
|
8
|
+
sql_error_categorizer-0.2.3.dist-info/METADATA,sha256=mHir_4ne6MyXnnWPpQNsRBhPM_F6DOuK-6dl8uMcTD0,20165
|
|
9
|
+
sql_error_categorizer-0.2.3.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
10
|
+
sql_error_categorizer-0.2.3.dist-info/licenses/LICENSE,sha256=6uZykGj9Y_5PgqXoMMwaGqoZFXVBpzCmitv8Dek1XtQ,1091
|
|
11
|
+
sql_error_categorizer-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
{sql_error_categorizer-0.2.2.dist-info → sql_error_categorizer-0.2.3.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|