tciuro / NanoStore

NanoStore is an open source, lightweight schema-less local key-value document store written in Objective-C for Mac OS X and iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-NSFP_setFullColumnNamesEnabled and deprecated SQLite pragmas

billgarrison opened this issue · comments

This may or may not be an actual issue.

In the latest SQLite docs, there's a note that the pragmas short_column_names and full_column_names are both deprecated.

http://www.sqlite.org/pragma.html#pragma_short_column_names
http://www.sqlite.org/pragma.html#pragma_full_column_names

-[NSFNanoEngine NSFP_setFullColumnNamesEnabled] calls both of these pragmas.

- (void)NSFP_setFullColumnNamesEnabled
{
    [self executeSQL:@"PRAGMA short_column_names = OFF;"];
    [self executeSQL:@"PRAGMA full_column_names = ON;"];
}

Unit tests seem to fail if -NSFP_setFullColumnNamesEnabled is made to not be invoked. Specifically, if the invocation of this method in [NSFNanoEngine allTables] is commented out, hell doth breaketh lose in NanoStoreTests.