Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create arbitrary-size BINARY column in SQLite #1443

Closed
timmc opened this issue Jan 30, 2022 · 1 comment
Closed

Can't create arbitrary-size BINARY column in SQLite #1443

timmc opened this issue Jan 30, 2022 · 1 comment

Comments

@timmc
Copy link
Contributor

timmc commented Jan 30, 2022

SQLite does not impose any length limit on binary data, so I would expect to be able to use arbitrary-size binary columns. However, binary() columns are disallowed for SQLite (only permitted for Oracle and PostgreSQL, according to the docstring).

binary(n) is permitted, but doesn't make much sense because SQLite doesn't itself have any column size validation (although I believe Exposed will do that enforcement).

Should SQLite be added to the list of dialects that support unlimited-size binary?

(I can also use blob() columns, which seem more appropriate since that's SQLite's own name for binary-represented data, but I currently am running up against #1442 so having more options might be nice...)

@Tapac
Copy link
Contributor

Tapac commented Apr 16, 2022

binary column will be backed with BLOB column type. Fix will be available since 0.38.2

@Tapac Tapac closed this as completed Apr 16, 2022
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

No branches or pull requests

2 participants