Skip to content

docs: SingleStore SQLGetTypeInfo fix merged upstream (#48) - #142

Merged
singhpratech merged 1 commit into
mainfrom
docs/singlestore-48-merged
Sep 23, 2026
Merged

singhpratech merged 1 commit into
mainfrom
docs/singlestore-48-merged

Conversation

@singhpratech

Copy link
Copy Markdown
Owner

Our fix PR memsql/singlestore-odbc-connector#48 was approved and merged this morning (2026-09-23T09:34:40Z, merge commit 182ae5b515), which closed #45 the same minute.

SQLGetTypeInfo built its type table as a SELECT of double-quoted string literals, so any session with ANSI_QUOTES in sql_mode read them as identifiers and the call failed with 42S22 Unknown column 'json'. Single-quoted literals fix it.

Two commits landed: the ma_info.c change, and a test change the review asked for — run on a connection of its own, following the project's own odbc143, and restore sql_mode before disconnecting.

Verified here beyond their CI, which cannot run on a fork PR (the "Build & Test" legs need a management token secret a fork cannot read): the driver was rebuilt from the merged branch on this machine and the whole info suite passes, 44 of 44, in both the client-side and the server-side prepared-statement modes, against a server whose sql_mode is non-empty so the save-and-restore is exercised. Running the pre-review version of the test showed it had not been masking a later failure in that file, so the change is robustness rather than a hidden bug.

Changes:

  • docs/UPSTREAM.md — the row moves to fixed, with the merge commit, what the review asked for, and the local verification. The status widget needs no change: the linked issue is closed as completed, which it already renders as fixed.
  • tests/compat/README.md — the SQLGetTypeInfo/ANSI_QUOTES section is now scoped to 1.2.2, the current release, and says where the fix landed. The comparison-table row carries the same.

Not yet released. master is still at 1.2.2 with no version bump staged, and their own pattern is an explicit bump commit before a tag, so the "fixed in" line waits — most likely 1.2.3.

#47, the SQLColumns/SQLPrimaryKeys NULL catalogue fix, is still open upstream.

Approved and merged 2026-09-23 by the maintainer, merge commit 182ae5b515,
closing memsql/singlestore-odbc-connector#45 the same minute. The review asked
for the test to run on its own connection, following the project's odbc143, and
to restore sql_mode before disconnecting; both are in the second commit.

The driver was rebuilt from the merged branch here and the whole info suite is
green in both the client-side and the server-side prepared-statement modes.

The compat note is now scoped to 1.2.2, which is still the current release, so
the shipped-in line waits for the next tag. master is at 1.2.2 with no version
bump staged.
@singhpratech
singhpratech merged commit 6bf25cf into main Sep 23, 2026
6 checks passed
@singhpratech
singhpratech deleted the docs/singlestore-48-merged branch September 23, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQLGetTypeInfo fails with 42S22 "Unknown column 'json'" when sql_mode contains ANSI_QUOTES (double-quoted literals in the type-info template)

1 participant