title: Android SQLite and Bind Variables Problem
body: <p>I'm trying to do a relatively simple bitwise query operation with SQLite on Android.  When I use bind variables, I get no data returned when I believe should get some rows back.  If I hardcode the bind variable's value directly into the SQL, it works just fine.  I'm thinking I have some silly syntax issue somewhere, but I just can't see it.</p>
  
  <p>So this code works just fine:</p>
  
  <pre><code>String selection = new String(FLAGS + " &amp; 2 = 2");
  cursor = db.query(TABLE_NAME, ALL_COLUMNS, selection,
      null, null, null, null, null );
  </code></pre>
  
  <p>This code however (using bind variables), returns no rows:</p>
  
  <pre><code>String selection = new String(FLAGS + " &amp; ? = ?");
  String[] selectionArgs = new String[]{"2", "2"};
  cursor = db.query(TABLE_NAME, ALL_COLUMNS, selection,
      selectionArgs, null, null, null, null );
  </code></pre>
  
  <p>They both result into a syntactically identical query being built when I inspect the cursor's mQuery property through the debugger.  The latter does have the mBindArgs property populated correctly as well.  I'm at a loss as to how this could be failing.  There are no exceptions thrown or anything, it just doesn't return any rows.</p>
  
  <p>I can take the failing query, and manually swap the question marks for the two's and paste it into the ADB SQLite command line interface and it works just fine as well.</p>