-
Notifications
You must be signed in to change notification settings - Fork 478
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
MySQL BLOB appears to be unsupported #985
Comments
Yes, BLOB support is not implemented in all backends. Contributing it for MySQL would be welcome, of course. |
Alright - Given that I'll need this (unless I am willing to rethink my DB design), chances are that I might give this a shot. I am wondering though: Why do we even have backend-specific BLOB implementations? My naive assumption was that a BLOB is essentially a wrapper around a |
If you look at the existing implementation for e.g. Oracle you can see that using blobs requires using database-specific types. Using |
Okay, but if I look at e.g. the implementation for sqlite3, this seems like it is essentially a custom implementation of a |
After having looked at different implementations, it seems like sqlite3 is essentially the exception here, so that explains why it probably doesn't make a lot of sense to have such a standard implementation... |
Yes. |
I had a look at https://github.com/SOCI/soci/blob/master/src/backends/mysql/blob.cpp and I noticed that the implementation is essentially just a wrapper around throwing an exception stating that BLOB was not supported.
I am wondering why this is the case? At first I thought that this might be due to MySQL not supporting BLOBs, but this doesn't seem to be the case: https://dev.mysql.com/doc/refman/8.0/en/blob.html
Is this just something that nobody has implemented yet?
The text was updated successfully, but these errors were encountered: