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

  • Home
  • SEARCH
  • 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 8628609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:35:24+00:00 2026-06-12T08:35:24+00:00

I get an assertion failiure on this statement; SELECT keyphrase_id, keyphrase, url, googlename FROM

  • 0

I get an assertion failiure on this statement;

SELECT keyphrase_id, keyphrase, url, googlename FROM keyphrases left join domains on keyphrases.domain_id = domains.domain_id where domain_id = ? and ifnull(keytime,'') != ? order by keyphrase desc;

I ran it through a SQL query checker and it highlighted the “!=” bit citing it wasn’t correct syntax. This doesn’t make sense to me since I was using this statement previously;

SELECT keyphrase_id, keyphrase, url, googlename FROM keyphrases left join domains on keyphrases.domain_id = domains.domain_id  where ifnull(keytime,'') != ? order by keyphrase desc;

This is how I bind the where values;

sqlite3_bind_int(selStmt, 1, domain_ID);

sqlite3_bind_text(selStmt, 2, [dateString UTF8String] , -1, SQLITE_TRANSIENT);

I can’t work this out at all and it’s definitely nothing to do with the database being open or the statement being nil when executing etc. since the only component of the method I’m changing is the SQL statement.

Can anyone suggest any possible reasons for this?

  • 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-12T08:35:25+00:00Added an answer on June 12, 2026 at 8:35 am

    If you get a return code from any sqlite3 function call that suggests an error, do another call to sqlite3_errmsg and look at the error message, e.g.

    NSLog(@"%s err: %s", __FUNCTION__, sqlite3_errmsg(database));
    

    This will tell you what’s wrong.

    Personally, I would have thought that the reference to domain_id in the where clause was ambiguous, but the sqlite3_errmsg will tell you precisely what’s going on.

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

Sidebar

Related Questions

Get class from div inside an li and add to the same li. The
I'm using a virtual lit control and I get the data from a map.
When i try to delete the cell i get crash ... Assertion failure in
I get this error message when connecting two UISwipeGestureRecognizers to a single view in
when I try to remove a cell from my UITableView it gives me this
I want to recover all the links from a page, while executing this code
When I look in the console I get this message 2010-09-18 17:04:05.284 Wasted Time[8998:207]
I am trying to detach elements from a boost::intrusive set and getting a assertion
Why does this Query Fails? SELECT SUB_COMMODITY, `VOL` AS Sales, `VOL_CHANGE` AS Dollar_change, `VOL_SHARE`
I can't seem to get assertions working in my eclipse android project. I have

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.