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

getObject method does not support auto-filling the actual type. #3400

Closed
robxyy opened this issue Aug 1, 2022 · 0 comments · Fixed by #3401
Closed

getObject method does not support auto-filling the actual type. #3400

robxyy opened this issue Aug 1, 2022 · 0 comments · Fixed by #3401
Labels

Comments

@robxyy
Copy link
Contributor

robxyy commented Aug 1, 2022

SQLDelight Version

2.0.0-alpha03

SQLDelight Dialect

postgresql, mysql

Describe the Bug

When compiling on 2.0.0-alpha03, compiling fails with:

Not enough information to infer type variable T
Unresolved reference: it

Item.sq

import diglol.id.Id;
import kotlinx.datetime.Instant;

CREATE TABLE item (
  id BYTEA AS Id NOT NULL,
  created_at TIMESTAMP AS Instant NOT NULL DEFAULT CURRENT_TIMESTAMP,
  updated_at TIMESTAMP AS Instant NOT NULL,
  deleted_at TIMESTAMP AS Instant,
  synced_at TIMESTAMP  AS Instant NOT NULL,
  PRIMARY KEY (id)
);

Auto-generated Code with:

image

Stacktrace

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

1 participant