Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8520603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:34:51+00:00 2026-06-11T06:34:51+00:00

I have a rawQuery string running but SQlite throws this warning : SQLiteDirectCursorDriver(1058): Found

  • 0

I have a rawQuery string running but SQlite throws this warning :

SQLiteDirectCursorDriver(1058): Found SQL string that ends in ;

because of quote issues. So I’m trying to use SelectionArgs in a query where I do not have really replacement by values, like this :

String query = "SELECT Min(?) as oldest, Max(?) as newest, COUNT(?) as nb_data FROM ? WHERE ? BETWEEN (SELECT Min(?) FROM ?) AND (SELECT Max(?) FROM ?)";
String[] values = new String[] { TS, TS, col_2, table, TS, TS, table, TS, table };
Cursor mCount = database.rawQuery(query, values);

I can’t get it working, even using fewer SelectionArgs strings (only on the “WHERE” part of the query) as there is not really value replacement requirements but placeholders.

Is there a solution to set this prepared statement (using placeholders rather than using quotes or rewriting the original query) to avoid getting the SQLiteDirectCursorDriver warning ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:34:52+00:00Added an answer on June 11, 2026 at 6:34 am

    You can use parameters only for expressions, not for identifiers.

    To prevent this warning, just omit the semicolon from the end of your SQL query strings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a sql query like this String loadFav = SELECT _id, title, name,
I'm having a rawQuery() with following sql string similar to this: selectionArgs = new
I have executed a rawQuery in android that returns multiple results that point to
I have written method which should return string with data from select query, but
i am trying to execute rawquery in sqlite in android but its erroring out
I have this error with an sqlite-related cursor. i subclass SQLiteOpenHelper to get access
I have my code below. It correctly reads my sqlite database file(that i have
I have got a query in sqlite String[] args = { Report_DATETIME,Report_DATETIME, EMSUnitCode };
I have this query in my database helper requesting a Google map URL string,
I have to retreive a string from database using their id.I done thet retreival,But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.