Hi everyone, I am having an issue with sqldelight ...
# squarelibraries
c
Hi everyone, I am having an issue with sqldelight (mpp). On android everything works fine, on iOS I have this error:
Copy code
near "transaction": syntax error in "CREATE TABLE IF NOT EXISTS transaction (
    id TEXT PRIMARY KEY NOT NULL,
    organizationId TEXT NOT NULL,
    origin_wallet_id TEXT,
    destination_wallet_id TEXT NOT NULL,
    amount INTEGER NOT NULL,
    currency_date TEXT NOT NULL,
    acknowledge_date TEXT,
    acknowledge_message TEXT,
    user_message TEXT,
    competence_id TEXT
)"
attempted to run migration and failed. closing connection.
is there something wrong in the query? maybe something not supported on iOS? Everything seems fine to me...
Damn, maybe "transaction" is not a valid name? Maybe it clashes with Sql "transaction"
Yep! I think that since iOS doesn't have "packages", the interface "Transaction" clashes with database "Transaction" class. Maybe it could be nice to add a check in the plugin or at least some sort of warning in the documentation
j
Can you file a bug about it?
c
Sure. Is a github issue ok? Or there's some jira/youtrack/whatever?
j
GitHub is great