sqlite3_column_text() and sqlite3_column_int()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

sqlite3_column_text() and sqlite3_column_int()

Prajeesh Prakash
Hi,

When i am trying to fetch the table data using sqlite3_column_text() i am getting wrong column entry even if i gave the correct column number as the second argument.
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: sqlite3_column_text() and sqlite3_column_int()

Igor Tandetnik-2
On 12/6/2018 12:58 PM, Prajeesh Prakash wrote:
> When i am trying to fetch the table data using sqlite3_column_text() i am getting wrong column entry even if i gave the correct column number as the second argument.

Show your query, your sqlite3_column_text() call, explain what result you expect and what you observe instead.

Remember that columns are numbered starting from 0 (zero).
--
Igor Tandetnik


_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users