Skip to content

Commit

Permalink
Merge branch 'main' into dbt-1-6-0-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-juntunen authored Apr 21, 2024
2 parents 7cc01b5 + 1bd64e4 commit 2891b45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dbt/adapters/sqlite/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def open(cls, connection: Connection):

for ext_path in credentials.extensions:
handle.load_extension(ext_path)

cursor = handle.cursor()

for schema in set(schemas_and_paths.keys()) - set(['main']):
Expand Down
3 changes: 1 addition & 2 deletions dbt/include/sqlite/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@
{% if contract_config.enforced %}
{{exceptions.warn("Model contracts cannot be enforced by sqlite!")}}
{% endif %}
create view {{ relation }}
as
create view {{ relation }} as
{{ sql }};
{%- endmacro %}

Expand Down
2 changes: 1 addition & 1 deletion dbt/include/sqlite/macros/utils/timestamps.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

{% macro sqlite__snapshot_get_time() -%}
datetime()
{%- endmacro %}
{%- endmacro %}

0 comments on commit 2891b45

Please sign in to comment.