Rusqlite expect i64 instead of string

I have strange compilation error,
when trying to define this INSERT query that contain GString column:

where is it getting i64 datatype expected? my database struct has GString at text also.
thoughts I've mismatch column indexes, but no, changing to ?n does not help..

Please share your code and error messages as plain text wrapped in ```, screenshots can't be read by everybody.

Arrays in Rust can only contain elements of a single type. You are trying to create an array with two elements that contains a &i64 and a &GString as an argument to your call to Transaction::execute, which is not possible. Try using a tuple instead:

- [app_browser_window_tab_item_id, text],
+ (app_browser_window_tab_item_id, text),
5 Likes

pff, really thank you much!!

attached screenshot just because of visible selections only, but ok - agreed

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.