sql-blocks 1.20250719__py3-none-any.whl → 1.20250720__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_blocks/sql_blocks.py CHANGED
@@ -2241,7 +2241,7 @@ class CTEFactory:
2241
2241
  if suffix:
2242
2242
  self.main = detect( self.replace_wildcards(''.join(suffix)) )
2243
2243
  elif not self.main:
2244
- self.main = Select(self.cte_list[0].table_name)
2244
+ self.main = Select(self.cte_list[-1].table_name)
2245
2245
  self.main.break_lines = False
2246
2246
 
2247
2247
  def build_ctes(self, script: str):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sql_blocks
3
- Version: 1.20250719
3
+ Version: 1.20250720
4
4
  Summary: Allows you to create objects for parts of SQL query commands. Also to combine these objects by joining them, adding or removing parts...
5
5
  Home-page: https://github.com/julio-cascalles/sql_blocks
6
6
  Author: Júlio Cascalles
@@ -0,0 +1,7 @@
1
+ sql_blocks/__init__.py,sha256=5ItzGCyqqa6kwY8wvF9kapyHsAiWJ7KEXCcC-OtdXKg,37
2
+ sql_blocks/sql_blocks.py,sha256=MkSiwm_YDzET8GqxIGK7l0gsLCvaoUzXkF89rHDu2NQ,85650
3
+ sql_blocks-1.20250720.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
4
+ sql_blocks-1.20250720.dist-info/METADATA,sha256=VjcatkJRFfSkhbmODhrPja2P_I9u7Yqb-0YuAZUwKs4,25592
5
+ sql_blocks-1.20250720.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
+ sql_blocks-1.20250720.dist-info/top_level.txt,sha256=57AbUvUjYNy4m1EqDaU3WHeP-uyIAfV0n8GAUp1a1YQ,11
7
+ sql_blocks-1.20250720.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- sql_blocks/__init__.py,sha256=5ItzGCyqqa6kwY8wvF9kapyHsAiWJ7KEXCcC-OtdXKg,37
2
- sql_blocks/sql_blocks.py,sha256=F6MnDlqlBDnCZkN6t2v3Kx7Og5o7kDetRvMP3xdrBGg,85649
3
- sql_blocks-1.20250719.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
4
- sql_blocks-1.20250719.dist-info/METADATA,sha256=3Aggm19HCvCpFNf-Mw8NCqX38WRTyd-eeBfg7wvpLwQ,25592
5
- sql_blocks-1.20250719.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
- sql_blocks-1.20250719.dist-info/top_level.txt,sha256=57AbUvUjYNy4m1EqDaU3WHeP-uyIAfV0n8GAUp1a1YQ,11
7
- sql_blocks-1.20250719.dist-info/RECORD,,