Skip to content

Commit 76f93ee

Browse files
authored
Merge branch 'master' into dependabot/pip/mypy-1.11.2
2 parents 64f0f5d + 26c89b4 commit 76f93ee

File tree

21 files changed

+729
-27
lines changed

21 files changed

+729
-27
lines changed

.github/workflows/integration-tests-sqlserver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
DBT_TEST_USER_3: DBT_TEST_USER_3
3636
COLLATION: ${{ matrix.collation }}
3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939

4040
- name: Install dependencies
4141
run: pip install -r dev_requirements.txt

.github/workflows/publish-docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
packages: write
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
- name: Log in to the Container registry
26-
uses: docker/login-action@v2.1.0
26+
uses: docker/login-action@v3.3.0
2727
with:
2828
registry: ghcr.io
2929
username: ${{ github.actor }}
@@ -50,10 +50,10 @@ jobs:
5050
packages: write
5151
steps:
5252
- name: Checkout
53-
uses: actions/checkout@v3
53+
uses: actions/checkout@v4
5454

5555
- name: Log in to the Container registry
56-
uses: docker/login-action@v2.1.0
56+
uses: docker/login-action@v3.3.0
5757
with:
5858
registry: ghcr.io
5959
username: ${{ github.actor }}

.github/workflows/release-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
name: Release new version
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

16-
- uses: actions/setup-python@v4
16+
- uses: actions/setup-python@v5
1717
with:
1818
python-version: '3.9'
1919

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
password: ${{ secrets.github_token }}
2929
steps:
3030

31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232

3333
- name: Install dependencies
3434
run: pip install -r dev_requirements.txt

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Join us on the [dbt Slack](https://getdbt.slack.com/archives/CMRMDDQ9W) to ask q
1717
## Installation
1818

1919
This adapter requires the Microsoft ODBC driver to be installed:
20-
[Windows](https://docs.microsoft.com/nl-be/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16#download-for-windows) |
21-
[macOS](https://docs.microsoft.com/nl-be/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver16) |
22-
[Linux](https://docs.microsoft.com/nl-be/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver16)
20+
[Windows](https://docs.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16#download-for-windows) |
21+
[macOS](https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver16) |
22+
[Linux](https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver16)
2323

2424
<details><summary>Debian/Ubuntu</summary>
2525
<p>

dbt/adapters/sqlserver/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "1.8.0rc1"
1+
version = "1.8.0rc2"

dbt/adapters/sqlserver/sqlserver_connections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def open(cls, connection: Connection) -> Connection:
130130

131131
plugin_version = __version__.version
132132
application_name = f"dbt-{credentials.type}/{plugin_version}"
133-
con_str.append(f"Application Name={application_name}")
133+
con_str.append(f"APP={application_name}")
134134

135135
con_str_concat = ";".join(con_str)
136136

dbt/include/sqlserver/macros/adapter/indexes.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
inner join sys.tables {{ information_schema_hints() }}
109109
on sys.indexes.object_id = sys.tables.object_id
110110
where sys.indexes.[name] is not null
111+
and SCHEMA_NAME(sys.tables.schema_id) = '{{ this.schema }}'
111112
and sys.tables.[name] = '{{ this.table }}'
112113
for xml path('')
113114
); exec sp_executesql @drop_remaining_indexes_last;

dbt/include/sqlserver/macros/materializations/models/incremental/incremental.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
{% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}
6060
{% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}
6161

62+
{% do to_drop.append(temp_relation) %}
6263
{% endif %}
6364

6465
{% call statement("main") %}

dbt/include/sqlserver/macros/materializations/snapshot/snapshot.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
{% set temp_snapshot_relation_sql = model['compiled_code'].replace("'", "''") %}
3737
{% call statement('create temp_snapshot_relation') %}
38+
USE [{{ model.database}}];
3839
EXEC('DROP VIEW IF EXISTS {{ temp_snapshot_relation.include(database=False) }};');
3940
EXEC('create view {{ temp_snapshot_relation.include(database=False) }} as {{ temp_snapshot_relation_sql }};');
4041
{% endcall %}

0 commit comments

Comments
 (0)