Repository navigation
This release ships the changes prepared for 1.12.3, which was merged but never published because its release build failed on a new CI runner image. It revises one deprecation warning, rewords the missing-CUBRIDdb error and raises the setuptools version needed to build from source. It also fixes paged queries that could return the wrong rows, BIGINT results returned as strings and Boolean results read as True from the string '0', with the PyPI CUBRIDdb 9.3 driver. SQL generation for other drivers, reflection and connection behavior are unchanged.
Upgrade notes
- Revised deprecation notice for ignored type arguments (#892) — the
DeprecationWarningfor the ignoredSMALLINT/BIGINTdisplay_widthargument (including positionalSMALLINT(11)) and the string-typevaluesargument now says they may be removed in a future reviewed 1.x MINOR instead of the next major release. The arguments are still accepted in this release and generate no different DDL. MigrateSMALLINT(11)toSMALLINT(),BIGINT(20)toBIGINT()andVARCHAR(30, values=["x"])toVARCHAR(30), or pin a narrower version range. The 1.x compatibility policy behind this change is in RELEASING.md (#1115, #1122) by @yeongseon. - Building from source needs setuptools 77 or newer — the build backend requirement is now
setuptools>=77for SPDX license metadata. Installing the published wheel is unaffected; source builds without build isolation need an up-to-date setuptools (#1113) by @CloudCorpRecords.
Changed
- Missing-CUBRIDdb error — the
Could not import CUBRIDdberror forcubrid://andcubrid+cubriddb://URLs no longer calls the CUBRIDdb C-extension driver legacy or the PyPICUBRID-Pythonreleases untested. It lists both installation paths (sqlalchemy-cubrid[cubriddb]or an official CUBRID/cubrid-python source build) and the pure-Pythoncubrid+pycubrid://alternative. The message prefix and the chained originalImportErrorare unchanged (#1150) by @yeongseon. - First-connect warning for the PyPI CUBRIDdb 9.3 driver — the
SAWarningemitted when the loaded CUBRIDdb is older than 11.3 no longer calls this supported driver line untested or tells users to switch away. It now names the limitations the dialect cannot work around, as observed with CUBRID 11.4:bytesvalues cannot be bound, constraint violations are raised asDatabaseErrorinstead ofIntegrityError, and the server rejects string-bound parameters in recursive CTEs andSETvalues. It also points to pycubrid and the v11.3.0.51 source build as alternatives. The warning still fires once per engine, the connection is unchanged, and the documentedmessage="CUBRIDdb .* is older"filter still matches (#1142) by @yeongseon.
Removed
- One-time historical release sync tools (#1182) — the three historical Release sync and audit scripts, their tests, the audit record
HISTORICAL_RELEASE_AUDIT.md(+ Korean) and the v1.12.2 Release body backup are removed. They served the one-time synchronization of published Release bodies, which finished when #1220 verified all 28 published bodies againstCHANGELOG.md. Release preparation and publishing are unchanged (#1182) by @yeongseon. - Unused repository files (#1182) — a stray
uv.lock(nothing runsuv sync/uv lock; CI usesuv pip install --group),codecov.yml(no workflow uploads to Codecov), the unreferenceddocs/javascripts/mermaid-init.js(diagrams render throughpymdownx.superfences), the placeholdertest/fixtures/README.md, the VHS scriptdemos/orm-demo.tape(the publisheddocs/demo.gifis rendered bydemos/render_gif.pyfromdemos/orm-demo.json) and the never-published MP4 recording kit (demos/orm-demo-mp4.tape,demos/orm_alembic_video.py,demos/VIDEO_RECORDING.md,docs/assets/videos/.gitkeep) are removed. No installed package code or supported behavior changes; refs #1182. - Dated benchmark results and the benchmark artifact contract (#1290) — the four dated result directories under
benchmarks/, the artifact manifest toolscripts/bench_artifact.pywith its tests, and the--source-shainstall verification and--server-image-digest,--host-labeland--comparable-groupoptions ofscripts/bench_dialect_baseline.pyare removed.docs/PERFORMANCE.md(+ Korean) is shortened to performance guidance, known limitations and how to run the kept local scripts:scripts/bench_compile.py,scripts/profile_orm.pyandscripts/bench_dialect_baseline.py, whose workloads are kept because cubrid-benchmark does not reproduce them yet; their result checks are unchanged, and the JSON report keeps the environment and workload identity but no longer records the install provenance fields or the image digest, host label and comparable-group labels. Reproducible performance experiments belong in cubrid-benchmark. Dialect runtime behavior, the dialect's tests and release checks are unchanged (#1290) by @yeongseon. make check-all— the alias ofmake check, deprecated in 1.11.5 and announced for removal after the next minor release (1.12.0), is removed. Runmake checkinstead;make test-offlineremains an alias ofmake test(#1313) by @yeongseon.
Fixed
- Paged queries with the PyPI CUBRIDdb 9.3 driver — this driver sends every bound parameter as a string, and CUBRID then applied a bound
LIMIT ?, ?incorrectly:.offset(1).fetch(2)returned four rows instead of two, with no error. When the connected CUBRIDdb is older than 11.3, the plain integers of a query with an offset (LIMIT offset, count) are now written into the SQL at execution time; such a statement cannot run throughexecutemany(). A limit without an offset, pycubrid and CUBRIDdb 11.3 or later still use bound parameters (#1299, #1300) by @yeongseon. BIGINTresults with the PyPI CUBRIDdb 9.3 driver — this driver returnsBIGINTvalues, includingCOUNT(*)andROWNUM, as strings ('5'). When the connected CUBRIDdb is older than 11.3, integer-typed and untyped (text()) result columns that the driver reports asBIGINTnow returnint. Other column types are never parsed, and pycubrid and CUBRIDdb 11.3 or later are unchanged (#1145, #1301) by @yeongseon.Booleanresults without a fixed column type with the PyPI CUBRIDdb 9.3 driver — this driver returns result columns that have no fixed type, such asPERCENTILE_DISC(...) WITHIN GROUP (ORDER BY <condition>), as strings, and SQLAlchemy'sBooleanresult processor turned'0'intoTrue. When the connected CUBRIDdb is older than 11.3, a string in aBooleanresult column is now read as a number first, so'0'returnsFalse; non-numeric text raisesValueErrorinstead of returningTrue. Other types, pycubrid and CUBRIDdb 11.3 or later are unchanged (#1143) by @yeongseon.- INSERT with a driver that lacks
get_last_insert_id()— with the PyPI CUBRIDdb 9.3 driver, a single-row INSERT on a connection that had not yet inserted into anAUTO_INCREMENTcolumn failed withTypeError: int() argument must be ... not 'NoneType', even though the row was stored; Alembic'salembic_versioninsert was one example. A NULLSELECT LAST_INSERT_ID()now means no generated key (#1302) by @yeongseon. pool_pre_pingwith the PyPI CUBRIDdb 9.3 driver — this driver has noConnection.ping(), so every ping failed andpool_pre_ping=Truediscarded and reopened a pooled connection on each checkout. Connections withoutping()are now checked withSELECT 1; CUBRIDdb 11.3 and pycubrid are unchanged (#1304) by @yeongseon.
Documentation
-
Release-note credit review checklist —
docs/RELEASE_NOTES_STYLE.mdand its Korean version add a six-point checklist from the audit of all published release notes: map entries to the implementing PR, credit co-authors only for substantive human commits, never credit agents or bots, leave summaries and dependency updates uncredited, verify first contributions, and check that each change is inside the release's tag range (#1220) by @yeongseon. -
SystemErrorafter closing a PyPI CUBRIDdb 9.3 connection twice —docs/DRIVER_COMPAT.mdand its Korean version now give the cause and a driver-only reproduction, and explain why the dialect keeps closing connections explicitly: leaving the close to the driver's deallocator avoids the error but left a busy broker session for every discarded pooled connection in a test on CUBRID 11.4 (#1320) by @yeongseon. -
PyPI CUBRIDdb 9.3 limitations after the dialect fixes —
docs/DRIVER_COMPAT.md, the support matrix and the README note (with their Korean versions) no longer say thatBIGINTresults stay strings, that paged queries can return the wrong rows or thatpool_pre_pingreopens every connection with this driver; they now say what the dialect converts or works around and what remains a driver limitation. They record the manually dispatchedcubriddb-pypi.ymllane run onmainand theSystemErrorafter a connection is closed twice (#1145, #1320, #1328) by @yeongseon. -
Temporary tooling lifecycle — the contributor guide and its Korean translation now say what a PR that adds a temporary script, probe or repair tool records (purpose, owner, removal trigger, evidence location, next review point), to prefer manual execution, and what to map before removing one. Permanent release automation and supported older-driver compatibility paths are not temporary tooling. The pull request template has an optional prompt (#1183, #1316) by @yeongseon.
-
First connection and troubleshooting — troubleshooting now shows the actual missing-pycubrid and authentication error messages, explains missing
greenleterrors for async engines and broker readiness, and adds Windows virtual-environment setup to the first-connection lesson and Apple silicon options for the CUBRID lab. Translated READMEs guide readers to their first connection withcubrid+pycubrid://URLs and no longer overstate live CI coverage (#1116, #1118, #1124, #1126, #1127, #1131, #1134, #1137, #1073, #1074, #1075, #1080, #1084, #1087, #1088) by @yeongseon. -
CUBRIDdb troubleshooting — the entry quotes the actual
Could not import CUBRIDdberror and lists the supportedsqlalchemy-cubrid[cubriddb]and official source-build installation paths, keeping the heading and anchor correction first proposed in #1110 (#1205) by @yeongseon. -
CUBRIDdb driver support policy — the support matrix and driver guides now list both CUBRIDdb driver lines as supported: the PyPI
CUBRID-Python9.3.0 release installed by the[cubrid]/[cubriddb]extras, which are no longer called deprecated, and a build of the cubrid-python v11.3.0.51 source release. A separate verification table shows what was actually run: CI tests the v11.3.0.51 build, while the 9.3.0 line is supported but not verified on current Python versions, and its known limitations from an earlier run (BIGINTreturned asstr, 25 integration failures) stay documented. pycubrid remains the recommended driver for new projects (#1298) by @yeongseon. -
CUBRIDdb installation advice — the README (and its Korean translation), installation and troubleshooting guides, architecture overview, third-party license table and
llms.txtno longer call the[cubrid]/[cubriddb]extras deprecated or the PyPI driver untested. They show both installation options, pointing to the known limitations of the PyPI 9.3.0 release (#1147, #1083) by @yeongseon. -
Translated driver guidance — the German, Hindi, Russian and Chinese READMEs describe both CUBRIDdb installation options instead of calling the PyPI driver untested and the extras deprecated, and
scripts/check_support_claims.pynow also checks that the Korean support matrix keeps both driver lines supported and the PyPI 9.3.x line not reported as tested (#1148) by @yeongseon. -
Feature support and versions — corrected the CUBRID 10.2 feature-support guidance and separated database server versions from Python driver versions, with a version check that works without CUBRIDdb installed. The connection guide now links to that version terminology from its introduction (#1117, #1149, #1140, #1082, #1312) by @yeongseon.
-
Getting help — the issue chooser and documentation now point to one support and questions path, and bug reports ask for the driver and URL scheme (#1125, #1129, #1135, #1077, #1078, #1079) by @yeongseon.
-
Published pages — fixed links from the documentation site and the PyPI README to repository files, made the PyPI demo render, and removed the unused Sphinx scaffold (#1123, #1132, #1138, #1076, #1097) by @yeongseon.
-
Historical release notes — earlier
CHANGELOG.mdsections now use the standard headings, credit verified human contributors (#1214), restore merged changes and published details they had omitted, and correct factual errors such as the PyPI 1.2.2 statement; all 28 published GitHub Release pages were updated to match and re-verified (#1153) by @yeongseon. -
Historical release notes: summaries and layout — earlier releases gained short reader summaries of what changed for users (14 versions in one pass and seven lengthy releases in another), the v1.11.6 and v1.11.7 commit dumps were replaced with release summaries, the v1.7.0, v1.7.1, v1.9.0 and v1.12.1 notes were rewritten around user-visible changes, and the Markdown layout, spacing and duplicated release-please bullets were fixed in
CHANGELOG.mdand the published Release pages; the v1.7.0, v1.7.1, v1.8.0, v1.10.0 and v1.11.0 notes got a final pass to be easier to scan (#1168, #1170, #1173, #1174, #1176, #1177, #1178, #1179, #1180, #1194, #1197, #1213, #1215, #1216, #1229, #1246, #1341, #1342, #1343, #1345, #1346, #1347, #1348, #1358, #1360) by @yeongseon. -
Historical release notes: one clarity pass per version — the notes for v0.1.0 to v0.7.0 (including nine historical draft releases), v1.5.0, v1.7.0, v1.7.1, v1.8.0, v1.9.0, v1.10.0, v1.11.0, v1.11.5 and v1.12.0 were reworded one version at a time to say what a reader gets: upgrade guidance, SQL and connection behavior, historical driver limits, license and localization notes, and test and CI changes, with the details kept and internal tooling descriptions shortened (#1231, #1233, #1249, #1250, #1258, #1259, #1260, #1261, #1262, #1263, #1264, #1265, #1266, #1267, #1268, #1269, #1270, #1271, #1272, #1273, #1274, #1275, #1276, #1277, #1278, #1279, #1280, #1281) by @yeongseon.
-
Historical release notes: standard headings and ordering — earlier sections of
CHANGELOG.mduse the standard###headings, with the v1.6.0 and v1.7.0 sections put in the standard order, in the v1.2.1 to v1.10.0 notes (and the v1.0.0 compatibility policy is marked as revised), so they read the same way as new releases; the same passes credited verified human contributors (#1152, #1184, #1188, #1189, #1190, #1191, #1192, #1193, #1195, #1196, #1200) by @yeongseon. -
Historical release notes: contributor credits — credits for the human authors of earlier releases were restored and verified against the merged pull requests, from the v0.7.1 to v1.12.1 notes (for example v1.2.1, v1.2.2, v1.4.2, v1.4.3, v1.5.0, v1.5.1, v1.8.0, v1.9.0, v1.10.0, v1.11.0, v1.11.5, v1.11.6, v1.11.7, v1.12.0 and v1.12.1) (#1198, #1199, #1201, #1202, #1221, #1223, #1224, #1225, #1226, #1227, #1228, #1235, #1236, #1237, #1238, #1239, #1240, #1241, #1244, #1245, #1282, #1283, #1330) by @yeongseon.
-
Historical release notes: restored details and corrections — merged changes and published details that earlier notes had omitted were restored (the v1.2.0 and v1.1.0 details, v1.6.0 pull request references and test results, the v0.8.0 support boundary, the v0.7.1 performance and package notes, and omitted test, CI and dependency entries of v1.10.0, v1.11.6, v1.12.1 and v1.12.2), duplicated v1.10.0 entries were removed, the v1.12.1 notes were corrected, and factual errors such as the PyPI 1.2.2 yank statement were fixed (#1186, #1187, #1203, #1204, #1207, #1208, #1209, #1210, #1211, #1232, #1234, #1242, #1243, #1338, #1340) by @yeongseon.
-
Historical release publication and audit — historical releases were audited and guarded against retrospective synchronization mistakes, four verified GitHub Releases were synchronized safely, comparison links were completed without rewriting the original notes, the published release notes are verified after synchronization, and release notes merged without review approval were restored; the curated v1.12.1 and v1.12.2 notes were published and the 1.12.3 notes moved into
[Unreleased](#1156, #1158, #1161, #1167, #1175, #1185, #1219) by @yeongseon. -
Contributor guidance and project policy — the contributor guidance now keeps SQLAlchemy dialect contribution rules and issue and pull request evidence ownership in this repository, defines the issue handoff and development states, removes the contest deadline from the Korean README sync guidance and the organization roadmap and project-board references, says when a scoped
# type: ignoreis acceptable, and says release candidates are frozen only when their review starts; the 1.8.0 PRD is labelled a historical snapshot (#1096, #1101, #1160, #1166, #1284, #1286, #1295, #1326, #1327) by @yeongseon. -
Dialect options and
MERGEdocumentation — the dialect options, themerge()builder and the string type arguments are documented (#1292, #1315) by @yeongseon. -
Help menu support links — added direct links to Discussions, the issue chooser and SECURITY.md from the documentation site's Help menu (#1294, #1297) by @aashnayadav (first contribution 🎉).
-
README demo — The demo GIF no longer shows an invented 1.7.0 install line; it quotes the extra, states the
pycubrid>=1.8.0,<2.0requirement and shows thepythonstep. It is still rendered from a script, not a live install (#1095, #1362) by @yeongseon.
CI
-
Release-note publication gate (#1356) — New release candidates must have a reader-focused introduction, curated change entries, and reasonable per-entry and total description lengths without exact duplicates. Release preparation reports violations without blocking candidate creation; final-head PR checks and the existing guarded publisher reject uncurated notes. Earlier released versions are not silently rewritten by this check (#1356, #1357) by @yeongseon.
-
Manual CI lane for the PyPI CUBRIDdb 9.3 driver — the new manual-only
cubriddb-pypi.ymlworkflow installs the project with the[cubriddb]extra, as users do (pip and uv currently install the PyPI 9.3.0 source archive9.3.0.0001as 9.3.0.1), records the driver's distribution and compiled-in_cubrid.__version__, and runsmake integrationon Python 3.12 and CUBRID 11.4, listing every failing test. It is evidence, not a required check or release gate, and is expected to fail until the known driver limitations are resolved. The driver-version report in the other live lanes now also prints_cubrid.__version__(#1146) by @yeongseon. -
Each change is listed once in release candidates — when a curated
[Unreleased]entry already cites a pull request or issue, the release changelog composer now drops the release-please entry generated for the same pull request or referenced issue, instead of listing the change twice. Generated entries without a matching reference, or crediting a contributor the curated entry does not credit, are kept, and released sections are unchanged (#1100, #1317) by @yeongseon. -
CUBRIDdb builds with GCC 14 and later — CI builds the pinned cubrid-python v11.3.0.51 driver with two flags that newer compilers need, and the source-build guide shows them (#1386, #1389) by @yeongseon.
Tests
- Pool recovery across CUBRID broker restarts — live tests in
test/test_server_restart.pyruncubrid broker restartunder a pycubridQueuePool. They check that idle pooled connections are reused safely, that work interrupted by the restart fails as a disconnect and is neither stored nor replayed, and that concurrent write requests stay consistent with the table, where a request reported as failed may be stored only when its COMMIT reply was lost. Verified on CUBRID 10.2 and 11.4 with pycubrid 1.17.0 (#1151) by @yeongseon. - Async pool recovery and pool lifecycle — the broker-restart tests now also cover the async
cubrid+aiopycubridengine and itsAsyncAdaptedQueuePool: idle pooled connections are reused safely with and withoutpool_pre_ping, an interrupted transaction fails as an invalidating disconnect and is neither stored nor replayed, and the next checkout gets a new connection.test/test_stress_pool.pyadds syncQueuePoolchecks thatpool_recyclereplaces only connections older than the limit, detected by the CUBRID server session rather than by timing, that a checkout fails withsqlalchemy.exc.TimeoutErrorafterpool_timeoutoncepool_sizeandmax_overfloware in use, and that uncommitted work is rolled back when a connection returns to the pool while its session is kept. Verified on CUBRID 10.2 and 11.4 with pycubrid 1.17.0 (#1151) by @yeongseon. - Bounded pooled request workload —
test/test_pool_soak.pyruns a mix of short reads, committed and rolled-back write transactions and idle gaps on a sync pycubridQueuePool, counts successful, failed and in-doubt requests, pool checkouts, checkins and invalidations, latency percentiles and the process RSS, file descriptors and sockets over time, then audits every write against the table. It runs for 3 seconds in everymake integration; a longer run with acubrid broker restartmidway and a JSON report is manual, throughCUBRID_SOAK_SECONDS,CUBRID_SOAK_BROKER_RESTARTandCUBRID_SOAK_REPORT(see docs/DEVELOPMENT.md). Verified on CUBRID 11.4 with pycubrid 1.17.0 (#1151) by @yeongseon. - Broker restarts with the CUBRIDdb driver — the idle-reuse and mid-transaction broker-restart tests in
test/test_server_restart.pynow run with both drivers instead of pycubrid only. With CUBRIDdb, idle pooled connections are reused aftercubrid broker restartwith and withoutpool_pre_ping, and work interrupted by the restart fails as an invalidating disconnect (InterfaceError-20004) that is neither stored nor replayed. Verified on CUBRID 11.4 with CUBRIDdb v11.3.0.51 and with the PyPI 9.3 release (#1151) by @yeongseon. - Bounded pooled workload with the CUBRIDdb driver —
CUBRID_SOAK_DRIVER=CUBRIDdbruns the sync workload intest/test_pool_soak.pywithcubrid://instead of pycubrid, and the JSON report records the loaded CUBRIDdb version. 5-minute runs with a broker restart passed on CUBRID 11.4 with CUBRIDdb v11.3.0.51 and with the PyPI 9.3 release; with 9.3 the process memory grew by about 7 KiB per request, whichdocs/DRIVER_COMPAT.mdnow records (#1151) by @yeongseon. - Pooled request workload on the async engine —
test/test_pool_soak.pyalso runs the same request mix, audit and report as asyncio tasks on an asynccubrid+aiopycubridengine and itsAsyncAdaptedQueuePool, with separate results; withCUBRID_SOAK_REPORTits JSON report gets an-asyncfile-name suffix. The sync and async runs share one bookkeeping and audit helper, so the same durable-outcome checks apply to both. A 5-minute async run with a broker restart passed on CUBRID 11.4 with pycubrid 1.17.0, and the sync long run also passed on CUBRID 10.2 (#1151) by @yeongseon. - Compiler tests split by SQL area — the offline compiler tests in
test/test_compiler.pyare moved, unchanged, intotest/test_compiler_dml.py(INSERT, UPDATE, ON DUPLICATE KEY UPDATE, REPLACE, MERGE),test/test_compiler_ddl.py(CREATE/DROP TABLE and INDEX, comments, TRUNCATE) andtest/test_compiler_types.py(type compiler output, rejected types, ENUM); SELECT-side and cross-statement tests stay intest/test_compiler.py, and shared helpers live intest/_compiler_helpers.py. The collected tests and their names are the same, and the new modules are added to the mutation-testing selection insetup.cfg(#1291) by @yeongseon.
Full Changelog: v1.12.2...v1.12.4