I have a SQLite Datatable with string value as id and a BLOB value for a picture.
I want to know if some entry with a specific id exists in the table.
Qu
I had a similar issue, in where my SQL query was normalising multiple rows into one column, giving;
org.hibernate.MappingException: No Dialect mapping for JDBC type: -9
So I had to wrap the XML result in a converter to convert it to varchar.
e.g. changed from
STUFF((select ' ' + RFID as [text()] from InnerTable inner
where inner.id = outer.id for XML PATH ('')), 1, 1, '')
as RFIDs
to
CONVERT(varchar(100),
STUFF((select ' ' + RFID as [text()] from InnerTable inner
where inner.id = outer.id for XML PATH ('')), 1, 1, '')
) as RFIDs