Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: edgeandnode/sqlx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: transact-rs/sqlx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 15 commits
  • 70 files changed
  • 13 contributors

Commits on Aug 17, 2026

  1. Fix PostgreSQL memory leak when statement cache is disabled (transact…

    …-rs#4337)
    
    * fix(postgres): check if statement caching is enabled before assigning an id
    
    * test(postgres): add regression test for transact-rs#4328
    deathlesz authored Aug 17, 2026
    Configuration menu
    Copy the full SHA
    56fbf87 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e57d05 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2026

  1. Configuration menu
    Copy the full SHA
    54ee68b View commit details
    Browse the repository at this point in the history
  2. docs(macros): document that bind parameter nullability is not compile…

    …-checked (transact-rs#4345)
    
    Restructures the "Nullability: Bind Parameters" section of the query!
    macro documentation to state upfront that the nullability of bind
    parameters is not verified at compile time, why (SQLx does not parse
    SQL), and give the concrete example from transact-rs#2642.
    
    The previous phrasing understated the limitation and hid it behind
    guidance about WHERE clauses, which is now demoted to a sub-section.
    
    Closes transact-rs#2642
    jeremie0342 authored Aug 18, 2026
    Configuration menu
    Copy the full SHA
    218ff5f View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2026

  1. Configuration menu
    Copy the full SHA
    2cd6369 View commit details
    Browse the repository at this point in the history
  2. sqlx-cli: drop the literal style override that was invisible on light…

    … terminals (transact-rs#4263)
    
    * sqlx-cli: use cyan instead of white for help text literals
    
    White is invisible on light terminal backgrounds. Cyan is readable on both
    light and dark backgrounds, so it's a better default for the literal style.
    
    Fixes transact-rs#4112
    
    * sqlx-cli: drop the literal style override
    
    Default terminal color is readable on both light and dark backgrounds,
    which is the original bug. No need to pick a specific replacement color.
    
    Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
    
    ---------
    
    Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
    c-tonneslan authored Aug 19, 2026
    Configuration menu
    Copy the full SHA
    531030b View commit details
    Browse the repository at this point in the history
  3. bugfix: streamline and fix AnyQueryResult::last_insert_id() for SQLite (

    transact-rs#4205)
    
    * fix: make MySqlQueryResult -> AnyQueryResult conversion more consistent & robust
    
    - replaced custom map_result function with From<T> implementation
    
    * fix: unify PgQueryResult -> AnyQueryResult conversion code path
    
    - replaced custom map_result function with From<T> implementation
    
    * fix: make SqliteQueryResult -> AnyQueryResult conversion respect last_insert_rowid
    
    - replaced custom map_result function with From<T> implementation
    - fixed bug causing AnyQueryResult.last_insert_id to always be None for Sqlite backend
    
    * test(sqlite): add any_sets_last_insert_id
    
    - added test
    - updated required-features
    
    * test(mysql): add any_sets_last_insert_id
    
    - added test
    - updated required-features
    
    * test(postgres): add any_sets_last_insert_id
    
    - added test
    - updated required-features
    
    * fix(tests): use different syntax to address compiler errors
    
    * fix(test/postgres): slightly change bind syntax as required for this backend
    migus-rs authored Aug 19, 2026
    Configuration menu
    Copy the full SHA
    ebc408a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    80f44db View commit details
    Browse the repository at this point in the history
  5. fix(sqlite): correct sub-second decoding of pre-epoch REAL datetimes (t…

    …ransact-rs#4340)
    
    Datetimes stored as a REAL Julian day number (e.g. via SQLite's
    julianday()) were decoded by splitting the UNIX timestamp with
    trunc()/fract().abs(). timestamp_opt() always adds the nanoseconds
    forward in time, so for values before 1970 this pushed the result up to
    ~2 seconds off and could move it onto the wrong side of the epoch
    (e.g. 1969-12-31 23:59:59.5 decoded as 1970-01-01 00:00:00.5).
    
    Round seconds toward negative infinity with floor() and take the
    sub-second remainder relative to that, so nanos is always a valid
    forward offset. Post-epoch values are unaffected. Adds unit tests for
    the pre- and post-epoch paths.
    zelinewang authored Aug 19, 2026
    Configuration menu
    Copy the full SHA
    4fc0fb8 View commit details
    Browse the repository at this point in the history
  6. chore: Add README to examples (transact-rs#4264)

    Some simple clarification for the use of the examples.
    szabgab authored Aug 19, 2026
    Configuration menu
    Copy the full SHA
    3d16ce6 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2026

  1. Reuse the TLS connector across connection attempts (transact-rs#4242)

    * feat(sqlx-core): split connector creation from handshake
    
    * feat(sqlx-mysql, sqlx-postgres): cache the TLS connector
    goffrie authored Aug 20, 2026
    Configuration menu
    Copy the full SHA
    d029396 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d15be8 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2026

  1. docs: clarify Pool::size and Pool::num_idle (transact-rs#4398)

    `num_idle` was documented as returning connections "active and idle",
    which reads as active plus idle. It only counts idle ones.
    
    `size` was documented as "currently active. This includes idle connections" which is incomplete: `try_increment_size()` bumps the counter before the connection is established, so connections still
    being opened are counted too.
    valentynkit authored Sep 2, 2026
    Configuration menu
    Copy the full SHA
    c113e72 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    09e1a65 View commit details
    Browse the repository at this point in the history
  3. docs(postgres): document default TimeZone=UTC session behavior (trans…

    …act-rs#4344)
    
    Adds a "Note: TimeZone" section to PgConnectOptions documentation
    explaining that SQLx sets the session TimeZone to UTC on connection,
    why this is done, and how it differs from psql's default behavior
    (which can surprise users of functions like date_trunc, now, etc.).
    
    Closes transact-rs#3226
    jeremie0342 authored Sep 2, 2026
    Configuration menu
    Copy the full SHA
    03af8bc View commit details
    Browse the repository at this point in the history
Loading