praeclarum / praeclarum/sqlite-net

Xamarin.IOS AutoIncrement not working

Open
#883 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.5k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Auto incrementing the PK on iOS does not work with SQLiteConnection.Insert()
int PK with value 0 are always saved without incrementing.
Works on Android Devices

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on an iOS device with SQLiteConnection.Insert() and an integer primary key set to 0, then compare the behavior with Android. Trace the insert and auto-increment handling to determine where the platform behavior diverges. Done means the primary key increments on iOS as it does on Android.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, ios, sqlite
Domain
databases, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.