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 6048599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:28:52+00:00 2026-05-23T07:28:52+00:00

I am building a cursor for a select query. The WHERE section lookup value

  • 0

I am building a cursor for a select query. The WHERE section lookup value refers to a variable which is a path so it has several full stops in it.

The query doesnt like this and errors , the error says a col doesn’t exist named with a name which is the lookup value i.e the path with stops in it. If I use the sqlEscape util on the variable it doesnt cause an error but the lookup fails.

Any suggestions please?

  • 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-05-23T07:28:53+00:00Added an answer on May 23, 2026 at 7:28 am

    Without a bit of your code it is hard to say but I’m guessing you are putting your where clause together like this:

    String value = "some.thing.or.other";
    String where = "FIELD = " + value;
    

    Try building a parameterized where clause instead

    String value = "some.thing.or.other";
    String where = "FIELD = ?";
    SQLiteDatabase db = fDbOpener.getReadableDatabase();
    Cursor results = db.query(TABLE_NAME, COLUMNS_LIST, where, new String[] { value }, null, null, null);
    

    When you run the query method now, SQLite will substitute your value into the where clause specifically as a value – it won’t try to interpret the value in any way so it can’t mistake the full stops for syntax.

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

Sidebar

Related Questions

I am building a custom win32 control/widget and would like to change the cursor
Building on what has been written in SO question Best Singleton Implementation In Java
Building a website that has English & Japanese speaking users, with the Japanese users
I have query building plsql code. I use bind variables and associative array to
I am a beginner to android, i am building a application in which when
I'm building a specialized viewer application which loads external SWFs. var content:Sprite = ...
I have a List and each entry has a dynamic count of attributes which
I have a a cursor loop that's building a string by concatenating the contents
I am building an AJAX application that needs to change the cursor to a
I am building a Cocoa Mac application that runs in the background but has

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.