Skip to content

dialect(derby): time and timestamp literals, binary columns, a number as text - #75

Merged
stbischof merged 1 commit into
mainfrom
pr/derby-literals-binary-text
Nov 9, 2026
Merged

stbischof merged 1 commit into
mainfrom
pr/derby-literals-binary-text

Conversation

@stbischof

Copy link
Copy Markdown
Contributor
  • Derby writes a time and a timestamp literal as TIME('...') and TIMESTAMP('...'), as it writes a date.
  • DdlGenerator.binaryTypeName(size), VARBINARY by default; Derby has no VARBINARY and writes VARCHAR (n) FOR BIT DATA up to 32672, a BLOB beyond or without a length.
  • Derby casts no number to VARCHAR: TO_TEXT is TRIM(CAST(x AS CHAR(254))).

… as text

- Derby writes a time and a timestamp literal as TIME('...') and
  TIMESTAMP('...'), as it writes a date.
- DdlGenerator.binaryTypeName(size), VARBINARY by default; Derby has
  no VARBINARY and writes VARCHAR (n) FOR BIT DATA up to 32672, a BLOB
  beyond or without a length.
- Derby casts no number to VARCHAR: TO_TEXT is
  TRIM(CAST(x AS CHAR(254))).

Signed-off-by: Stefan Bischof <stbischof@bipolis.org>
@stbischof
stbischof merged commit 0b778ad into main Nov 9, 2026
24 of 30 checks passed
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.

1 participant