Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix various postgresql issues #86

Merged
merged 1 commit into from
Feb 10, 2023
Merged

fix various postgresql issues #86

merged 1 commit into from
Feb 10, 2023

Conversation

ajgon
Copy link
Contributor

@ajgon ajgon commented Feb 9, 2023

  • all id fields are missing DEFAULT nextval('.._id_seq') stanza, meaning it's not possible to add any rows to them. PDO does something like INSERT INTO table (id, ...) VALUES (null, ...), and without default sequence, this will throw an error.
  • Sabre DAV expects synctoken to be integer and adds +1 to it (here and here). MySQL probably casts transparently varchar to int, and allows that, but postgres would complain about unknown varchar + integer operation.

- all `id` fields are missing `DEFAULT nextval('.._id_seq')` stanza,
  meaning it's not possible to add any rows to them. PDO does something
  like `INSERT INTO table (id, ...) VALUES (null, ...)`, without
  default sequence, this will throw an error.
- Sabre DAV expects synctoken to be integer and adds `+1` to it at some
  point. MySQL probably casts transparently varchar to int, and allows
  that, but postgres would complain about unknown `varchar + integer`
  operation.
@tchapi tchapi merged commit 1256f4c into tchapi:master Feb 10, 2023
@tchapi tchapi added enhancement New feature or request good first issue Good for newcomers labels Feb 10, 2023
@tchapi tchapi self-assigned this Feb 10, 2023
@tchapi
Copy link
Owner

tchapi commented Feb 10, 2023

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants