Comments (6)
Is this every time you try to create a persistent store, or some snippet of code that is causing it? Sorry a little confused how to reproduce this.
from encrypted-core-data.
@gblackMitre to reproduce this, you just need to create an attribute when
in random entity and voila.
The reason is - non-escaped attributes, for example, if we have an entity with this attribute, create table
query will fail, because WHEN
is SQLite's keyword:
CREATE TABLE SomeEntity (id integer primary key, _entityType integer, when, what, where);
This issue can be resolved by adding single quotes around each attribute on query generation stage. If you think it would be ok, I can make a pull request for this.
from encrypted-core-data.
Thanks, was able to reproduce it now.
from encrypted-core-data.
For my own reference:
columnNamesForEntity grabs the attributes into a list of key values. Need to go through and prepend something unique to each key. This may not be the only place, but any other area impacted will have a similar fix.
from encrypted-core-data.
@gblackMitre sxua@63fdf29
from encrypted-core-data.
@sxua Thank you for the fix, I've added it in commit 12e5b3c
from encrypted-core-data.
Related Issues (20)
- ARC Semantic Issue Multiple methods named 'objectID' found with mismatched result, parameter type or attributes
- Using Encrypted CoreData in App Extension
- Unable to change password
- unable to initialize class object to change password HOT 1
- Fetch return nil data HOT 1
- missing support for batch requests (NSBatchDeleteRequest, NSBatchUpdateRequest) HOT 1
- Doesn't encrypt the .sqlite file and extra "ecd" tables doesn't have any records.
- Migration Old unencrypted Core database to Encrypted Core Data base(using SQLCipher).
- Migration Old unencrypted Core database to Encrypted Core Data base. HOT 2
- XCode 12 build error HOT 1
- Migrating SQLCipher version from 3.x to 4.x in Encrypted Core Data HOT 1
- How to implement Encrypted Core Data in Existing project with Swift 5.3.2 HOT 1
- NSFetchRequest returnsObjectsAsFaults doesn't work HOT 1
- Is this project no longer being maintained? HOT 3
- 'NSKeyedUnarchiveFromData' should not be used to for un-archiving and will be removed in a future release HOT 2
- Very small subset of users randomly getting EncryptedStoreErrorIncorrectPasscode error
- issue with Lightweight migration Coredata
- iOS CoreData- Tracking persistent transaction history
- Swift no such moduble EncrytedCoreData
- Default DB Storage location
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from encrypted-core-data.