Making sure an 'int' is bound on sqlite
<p>I have a method called like this...</p>

<pre><code>-(void)dbUpdate:(int)forId {
</code></pre>

<p>Which contains this sqlite to bind and update a database.  </p>

<pre><code>sqlite3_bind_int(UPDATE_ACCOUNT, 3, forId);
</code></pre>

<p>When I run the query, it doesn't give me an error, but it doesn't update the database either.</p>

<p>If I change this line of code...</p>

<pre><code>sqlite3_bind_int(UPDATE_ACCOUNT, 3, forId);
</code></pre>

<p>manually, to...</p>

<pre><code>sqlite3_bind_int(UPDATE_ACCOUNT, 3, 6);
</code></pre>

<p>the query runs 100% fine, as expected.</p>

<p>Changing the variable to an actual integer proves to me that the variable 'forId' isn't being passed or bound to the query properly.</p>

<p>What am I doing wrong?  How is the best way to pass an Integer (and make sure it is an Integer) into an sqlite bind?</p>

<p>Cheers,</p>
