Skip to content

Conversation

@angrynode
Copy link
Owner

Blocked by SeaQL/sea-orm#2811

@angrynode
Copy link
Owner Author

Actually removing the extra #[sea_orm(column_type = "String")] makes it compile successfully?!

@angrynode
Copy link
Owner Author

@tyt2y3 Thanks for string_null. I can't find it in the docs but maybe that's because it's not been released yet?

It appears to work, i can insert active models with none values. However, query filtering by None column value still fails. Is that expected, or am i just doing it wrong?

@tyt2y3
Copy link

tyt2y3 commented Nov 21, 2025

the functions can be found here https://docs.rs/sea-orm-migration/latest/src/sea_orm_migration/schema.rs.html#121-123

to query nulls, you need to use the is_null method

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants