Input array is longer than the number of columns in this table
Posted
by
Adam
on Stack Overflow
See other posts from Stack Overflow
or by Adam
Published on 2011-02-22T22:55:43Z
Indexed on
2011/02/22
23:25 UTC
Read the original article
Hit count: 374
I've recently started to use SQLite and began to integrate it into a C# project I'm working on.
However, randomly my project will throw the exception:
Input array is longer than the number of columns in this table
I'm having a hard time trying the trace the problem because it seems to be thrown on a random basis.
DataTable table = new DataTable();
//exception is thrown here
table = Global.db.ExecuteQuery("SELECT * FROM vm_manager");
Some of the data that gets returned from this query is as follows:
If anyone has any advice, I'd be grateful.
EDIT: I'm unable to show the execute query function as it resides inside a dll from the following sql lite wrapper http://www.codeproject.com/KB/database/cs_sqlitewrapper.aspx
© Stack Overflow or respective owner