GeezerVison is showing github.com — docs: the rc.22 notes say contract infer writes the convenience date types, and the MySQL READMEs say MySQL reads by wmadden-electric · Pull Request #30924 · prisma/orm
Conversation
wmadden-electric
commented
Oct 30, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
In 8.0.0-rc.22, prisma contract infer writes a PostgreSQL timestamptz column differently:
// before 8.0.0-rc.22: an ISO 8601 string, every digit kept
createdAt TimestamptzString @default(now())
// 8.0.0-rc.22: a JavaScript Date, milliseconds only
createdAt DateTime(precision: 6) @default(now())
The rc.22 release notes did not say so. Someone who infers a contract again gets a field that reads a Date instead of a string, and loses microseconds, with no warning in the notes. This PR adds that to the first breaking change in docs/releases/v8.0.0-rc.22.md and the matching CHANGELOG.md entry. It lists what each date and time column is inferred as, and says as: string keeps the string. The source for each mapping is packages/3-targets/postgres/1-target/test/psl-infer/infer-column-types.test.ts.
The published GitHub Release for v8.0.0-rc.22 gets the same text.
It also corrects two package READMEs that 8.0.0-rc.22 made wrong. @prisma/orm-mysql said its query client had "not landed yet", and @prisma/orm-target-mysql said it carried the control plane only. Since #30863 and #30893, mysql({ contract, url }) reads through the ORM and the SQL builder, runs raw SQL and transactions, and refuses writes through the ORM or SQL builder. Both READMEs now say that, and list the /runtime and /static entrypoints.
Review found one more error, in the notes and in my READMEs. The rc.22 notes said the MySQL drivers send every value as a server-side prepared-statement parameter. That was true after #30893, but #30918 also shipped in rc.22: the driver now hands each statement to the mariadb package, which writes the values into the statement with its own escaping, in one round trip. The notes, CHANGELOG.md and both READMEs now say that. The docs site had the same sentence; prisma/web#8672 fixes it.
Docs only. check:release-notes --mode pr passes.
Agent: paddington-54
🤖 Generated with Claude Code
Summary by CodeRabbit
- Documentation
- Clarified how PostgreSQL date and time types map to convenience types, including
timestamptz reads as JavaScript Date values and how to preserve string reads and microsecond precision.
- Documented MySQL runtime reads through ORM, SQL-builder, raw SQL, and transactions. Values are escaped into statements, with one round trip per statement.
- Clarified MySQL limitations, including unsupported row writes, row locks, and
LATERAL joins, and documented runtime entrypoints and session settings.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 30, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 99f01ff and 7b433b6.
Files selected for processing: 4
-
CHANGELOG.md
docs/releases/v8.0.0-rc.22.md
packages/9-public/@prisma/orm-mysql/README.md
packages/9-public/@prisma/orm-target-mysql/README.md
Files skipped from review as they are similar to previous changes: 4
-
- CHANGELOG.md
- packages/9-public/@prisma/orm-target-mysql/README.md
- packages/9-public/@prisma/orm-mysql/README.md
- docs/releases/v8.0.0-rc.22.md
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Walkthrough
-
The changelog and release notes document PostgreSQL date/time inference and read behavior. The MySQL documentation describes runtime read capabilities, value escaping, limitations, and entrypoints.
Changes: PostgreSQL date/time release notes
| Layer / File(s) |
Summary |
Document date/time mappings CHANGELOG.md, docs/releases/v8.0.0-rc.22.md |
The changelog and release notes list date/time types emitted by contract infer and contract print. They describe timestamptz reads as JavaScript Date values that lose microseconds, and note that as: string with precision 6 preserves string reads and microsecond precision. |
MySQL runtime documentation
| Layer / File(s) |
Summary |
Document runtime support and entrypoints packages/9-public/@prisma/orm-mysql/README.md, packages/9-public/@prisma/orm-target-mysql/README.md, CHANGELOG.md, docs/releases/v8.0.0-rc.22.md |
The READMEs describe MySQL runtime reads, statement values escaped by mariadb, unsupported operations, session settings, and runtime entrypoints. The changelog and release notes state that each statement uses one round trip. |
Priority: Low
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Other
Suggested reviewers: tensordreams
Merge Risk: Minimal · up to 7b433
-
The documentation correction has no identified merge-blocking risk. Merge after the normal documentation checks.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Description Check |
 |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
 |
The title clearly identifies the documentation updates for PostgreSQL convenience date types and MySQL read support. It is specific and related to the main changes. |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
size-limit report 📦
| Path |
Size |
| postgres / no-emit |
279.57 KB (0%) |
| postgres / emit |
243.82 KB (0%) |
| mongo / no-emit |
226.92 KB (0%) |
| mongo / emit |
184.66 KB (0%) |
| cf-worker / no-emit |
342.55 KB (0%) |
| cf-worker / emit |
302.62 KB (0%) |
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
pkg-pr-new
Bot
commented
Oct 30, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Open in StackBlitz
@prisma/orm-extension-arktype-json
npm i https://pkg.pr.new/@prisma/orm-extension-arktype-json@30924
@prisma/orm-extension-middleware-cache
npm i https://pkg.pr.new/@prisma/orm-extension-middleware-cache@30924
@prisma/orm-extension-paradedb
npm i https://pkg.pr.new/@prisma/orm-extension-paradedb@30924
@prisma/orm-extension-pgvector
npm i https://pkg.pr.new/@prisma/orm-extension-pgvector@30924
@prisma/orm-extension-postgis
npm i https://pkg.pr.new/@prisma/orm-extension-postgis@30924
@prisma/orm-extension-supabase
npm i https://pkg.pr.new/@prisma/orm-extension-supabase@30924
@prisma/orm-family-mongo
npm i https://pkg.pr.new/@prisma/orm-family-mongo@30924
@prisma/orm-family-sql
npm i https://pkg.pr.new/@prisma/orm-family-sql@30924
@prisma/orm-framework
npm i https://pkg.pr.new/@prisma/orm-framework@30924
@prisma/orm-mongo
npm i https://pkg.pr.new/@prisma/orm-mongo@30924
@prisma/orm-mysql
npm i https://pkg.pr.new/@prisma/orm-mysql@30924
@prisma/orm-postgres
npm i https://pkg.pr.new/@prisma/orm-postgres@30924
@prisma/orm-postgres-contrib
npm i https://pkg.pr.new/@prisma/orm-postgres-contrib@30924
@prisma/orm-sqlite
npm i https://pkg.pr.new/@prisma/orm-sqlite@30924
@prisma/orm-target-mongo
npm i https://pkg.pr.new/@prisma/orm-target-mongo@30924
@prisma/orm-target-mysql
npm i https://pkg.pr.new/@prisma/orm-target-mysql@30924
@prisma/orm-target-postgres
npm i https://pkg.pr.new/@prisma/orm-target-postgres@30924
@prisma/orm-target-sqlite
npm i https://pkg.pr.new/@prisma/orm-target-sqlite@30924
@prisma/orm-toolchain
npm i https://pkg.pr.new/@prisma/orm-toolchain@30924
commit: 7b433b6
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
wmadden
wmadden approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|