adbc-driver-postgresql 1.3.0__tar.gz → 1.4.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.
- {adbc_driver_postgresql-1.3.0/adbc_driver_postgresql.egg-info → adbc_driver_postgresql-1.4.0}/PKG-INFO +2 -2
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/_static_version.py +3 -3
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0/adbc_driver_postgresql.egg-info}/PKG-INFO +2 -2
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/tests/test_dbapi.py +24 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/LICENSE.txt +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/MANIFEST.in +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/NOTICE.txt +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/README.md +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/__init__.py +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/_version.py +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/dbapi.py +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql.egg-info/SOURCES.txt +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql.egg-info/dependency_links.txt +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql.egg-info/requires.txt +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql.egg-info/top_level.txt +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/pyproject.toml +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/setup.cfg +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/setup.py +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/tests/test_lowlevel.py +0 -0
- {adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/tests/test_polars.py +0 -0
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
|
|
21
21
|
# This file is part of 'miniver': https://github.com/jbweston/miniver
|
|
22
22
|
|
|
23
|
-
version = "1.
|
|
23
|
+
version = "1.4.0"
|
|
24
24
|
|
|
25
25
|
# These values are only set if the distribution was created with 'git archive'
|
|
26
26
|
# NOTE: must add an export-subst to .gitattributes!
|
|
27
|
-
refnames = "HEAD, tag: apache-arrow-adbc-
|
|
28
|
-
git_hash = "
|
|
27
|
+
refnames = "HEAD, tag: apache-arrow-adbc-16-rc3, origin/maint-16"
|
|
28
|
+
git_hash = "05c33a770"
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
+
import datetime
|
|
18
19
|
import string
|
|
19
20
|
from pathlib import Path
|
|
20
21
|
from typing import Generator
|
|
@@ -424,3 +425,26 @@ def test_ingest_large(postgres: dbapi.Connection) -> None:
|
|
|
424
425
|
table = pyarrow.Table.from_batches([batch] * 4)
|
|
425
426
|
with postgres.cursor() as cur:
|
|
426
427
|
cur.adbc_ingest("test_ingest_large", table, mode="replace")
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
def test_timestamp_txn(postgres: dbapi.Connection) -> None:
|
|
431
|
+
"""Regression test for #2410."""
|
|
432
|
+
ts = datetime.datetime.now()
|
|
433
|
+
ts_with_tz = datetime.datetime.now(tz=datetime.UTC)
|
|
434
|
+
|
|
435
|
+
with postgres.cursor() as cur:
|
|
436
|
+
cur.execute("DROP TABLE IF EXISTS ts_txn")
|
|
437
|
+
cur.execute("CREATE TABLE ts_txn (ts TIMESTAMP WITH TIME ZONE);")
|
|
438
|
+
postgres.commit()
|
|
439
|
+
|
|
440
|
+
with postgres.cursor() as cur:
|
|
441
|
+
cur.execute("INSERT INTO ts_txn VALUES ($1)", parameters=[ts])
|
|
442
|
+
cur.execute("SELECT pg_current_xact_id_if_assigned()")
|
|
443
|
+
assert cur.fetchone() != (None,)
|
|
444
|
+
postgres.commit()
|
|
445
|
+
|
|
446
|
+
with postgres.cursor() as cur:
|
|
447
|
+
cur.execute("INSERT INTO ts_txn VALUES ($1)", parameters=[ts_with_tz])
|
|
448
|
+
cur.execute("SELECT pg_current_xact_id_if_assigned()")
|
|
449
|
+
assert cur.fetchone() != (None,)
|
|
450
|
+
postgres.commit()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/__init__.py
RENAMED
|
File without changes
|
{adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/_version.py
RENAMED
|
File without changes
|
{adbc_driver_postgresql-1.3.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/dbapi.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|