/oss · 2 merged

tobilg/polyglot

A SQL translator, written in Rust, that rewrites queries between more than 30 database dialects.

the project on GitHub (opens in a new tab)
  1. 23 Nov 2026

    Date formatting from DuckDB to SQLite works

    What was broken
    DuckDB date-formatting calls were copied to SQLite with their two parts in the wrong order, so every row came back empty.
    What I changed
    I made the translator swap the two parts for SQLite, as it already did for other databases.
    Why it matters
    Reports moved from DuckDB to SQLite show their dates.

    see the code, #533 (opens in a new tab)

  2. 23 Nov 2026

    Division in SQLite queries keeps whole-number results

    What was broken
    Translating a query to or from SQLite changed every division to decimal math, so 7 / 2 gave 3.5 where the database gives 3.
    What I changed
    I made that change only when the source database really does decimal division.
    Why it matters
    Translated queries return the same numbers as the originals.

    see the code, #532 (opens in a new tab)

← every project