I have a column with type integer array (postgresql). But I don't know how to insert data with bindValue. I tried QVariantList, but failed.
Code:
QVariantList nomor; nomor << 1 << 2 << 3 << 4; sql.bindValue(":intarraycolumn", nomor);
Need your help
Printable View
I have a column with type integer array (postgresql). But I don't know how to insert data with bindValue. I tried QVariantList, but failed.
Code:
QVariantList nomor; nomor << 1 << 2 << 3 << 4; sql.bindValue(":intarraycolumn", nomor);
Need your help
You need to construct a string that will look like this one:
{ youInt1, yourInt2, ..., your intN } and bound it.
PostgreSQL's doc says it should be "{...}", not "(...)".