Giter Site home page Giter Site logo

Comments (6)

gavin-black avatar gavin-black commented on June 16, 2024

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.

sxua avatar sxua commented on June 16, 2024

@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.

gavin-black avatar gavin-black commented on June 16, 2024

Thanks, was able to reproduce it now.

from encrypted-core-data.

gavin-black avatar gavin-black commented on June 16, 2024

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.

sxua avatar sxua commented on June 16, 2024

@gblackMitre sxua@63fdf29

from encrypted-core-data.

gavin-black avatar gavin-black commented on June 16, 2024

@sxua Thank you for the fix, I've added it in commit 12e5b3c

from encrypted-core-data.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.