Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nicer handleing of NULL in execute with format. #125

Closed
wants to merge 2 commits into from
Closed

Nicer handleing of NULL in execute with format. #125

wants to merge 2 commits into from

Commits on Feb 22, 2013

  1. Update src/FMDatabase.m

    When using executeUpdateWithFormat encountered following issue,
    %@ replaced by @ for NULL objects and would fail with non descriptive lastErrorMessage.
    
    example 
    
        [db executeUpdateWithFormat@"INSERT INTO TEST VALUES(%@)", nil];
        // results in cleanedSQL == "INSERT INTO TEST VALUES(@)"
        // fix changes this to cleanedSQL == "INSERT INTO TEST VALUES(NULL)"
    p-m-j committed Feb 22, 2013
    Copy the full SHA
    1822974 View commit details
    Browse the repository at this point in the history
  2. Update src/FMDatabase.m

    fix: would have caused issues for @'s that aren't placeholders
    p-m-j committed Feb 22, 2013
    Copy the full SHA
    124630b View commit details
    Browse the repository at this point in the history