msgdata bit varying(4096)
C++ (Qt)QByteArray ba = ...;QSqlQuery query();query.prepare("INSERT INTO mytable(id, bytefield) VALUES(?,?)");query.bindValue(0, 1);query.bindValue(1, ba);query.exec();
CREATE TABLE inda( msgdata varbit(83886076), ind int4 NOT NULL, CONSTRAINT inda_pkey PRIMARY KEY (ind))
QByteArray ba(10); QSqlQuery sql(); sql.prepare("INSERT INTO inda (ind, msgdata) VALUES(?,?)"); sql.bindValue(0, 1); sql.bindValue(1, ba); if (sql.exec()) // записали? { }
2009-11-02 19:03:01 ERROR: "\" is not a valid binary digit
bytea