Closed dmitry-kotorov closed 3 months ago
Bumped to this today, temporary workaraound is writing the raw query as:
/// Needed because there is an error in Dart Prisma ORM which makes it
/// impossible to set remind_at to null
static Future<void> _mySQLQueryToUpdateRemindAt({
required String reminderId,
required DateTime? newDate,
required PrismaClient intermediateClient,
}) async {
const query = 'UPDATE '
' `$_reminderRawTableName` '
' SET `$_reminderRawRemindAtColumnName` = ? '
' WHERE id = ?';
await intermediateClient.$raw.execute(query, [
newDate,
reminderId,
]);
}
@dmitry-kotorov @kerimamansaryyev Update ORM to 4.2.1
version, I have verified that it has been fixed. If you still have this problem, please create a minimal repo to reproduce it and I will reopen the issue.
Hello,
I am using orm: ^4.0.1
Model:
While updating one record with message = null using query:
Query:
I am getting the following error:
Error: