soda-sqlserver 4.14.0__tar.gz → 4.15.0__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.
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soda-sqlserver
3
- Version: 4.14.0
3
+ Version: 4.15.0
4
4
  Summary: Soda SQL Server V4
5
5
  Author-email: "Soda Data N.V." <info@soda.io>
6
6
  License: Proprietary
7
7
  Requires-Python: >=3.10
8
- Requires-Dist: soda-core==4.14.0
8
+ Requires-Dist: soda-core==4.15.0
9
9
  Requires-Dist: pyodbc
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "soda-sqlserver"
3
- version = "4.14.0"
3
+ version = "4.15.0"
4
4
  description = "Soda SQL Server V4"
5
5
  requires-python = ">=3.10"
6
6
  license = {text = "Proprietary"}
@@ -8,7 +8,7 @@ authors = [
8
8
  {name = "Soda Data N.V.", email = "info@soda.io"}
9
9
  ]
10
10
  dependencies = [
11
- "soda-core==4.14.0",
11
+ "soda-core==4.15.0",
12
12
  "pyodbc",
13
13
  ]
14
14
 
@@ -15,6 +15,14 @@ class SqlServerDataSourceTestHelper(DataSourceTestHelper):
15
15
  def _create_database_name(self) -> Optional[str]:
16
16
  return os.getenv("SQLSERVER_DATABASE", "master")
17
17
 
18
+ def _string_length_sql_function(self) -> str:
19
+ # SqlServer's LEN() trims trailing spaces, under-reporting any
20
+ # payload that ends with spaces. DATALENGTH() returns the raw
21
+ # byte count, which equals char count for varchar columns and
22
+ # is the right answer for the unbounded-column data-length
23
+ # verification.
24
+ return "datalength"
25
+
18
26
  def _create_data_source_yaml_str(self) -> str:
19
27
  """
20
28
  Called in _create_data_source_impl to initialized self.data_source_impl
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soda-sqlserver
3
- Version: 4.14.0
3
+ Version: 4.15.0
4
4
  Summary: Soda SQL Server V4
5
5
  Author-email: "Soda Data N.V." <info@soda.io>
6
6
  License: Proprietary
7
7
  Requires-Python: >=3.10
8
- Requires-Dist: soda-core==4.14.0
8
+ Requires-Dist: soda-core==4.15.0
9
9
  Requires-Dist: pyodbc
@@ -0,0 +1,2 @@
1
+ soda-core==4.15.0
2
+ pyodbc
@@ -1,2 +0,0 @@
1
- soda-core==4.14.0
2
- pyodbc