79081524

Date: 2024-10-12 17:20:38
Score: 1
Natty:
Report link

In SQL, implicit conversion from TEXT to BLOB doesn’t work in the way you're thinking. You need to provide binary data for the BLOB column explicitly.

INSERT INTO "non_strict_table" ("name", "data") VALUES ('name_01', CAST('blob_data' AS BLOB));

This converts the string 'blob_data' to a BLOB and stores it.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ernesto