-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
This does not works:
final res = await executor(
Sql.named(
'ALTER SEQUENCE auth.user_short_id_sequence RESTART WITH @newShortId',
// 'ALTER SEQUENCE auth.user_short_id_sequence RESTART WITH 1200',
),
parameters: {
'newShortId': newShortId,
},
);
newShortId
is int
.
Severity.error 42601: syntax error at or near "$1"
This works:
final res = await executor(
Sql.named(
// 'ALTER SEQUENCE auth.user_short_id_sequence RESTART WITH @newShortId',
'ALTER SEQUENCE auth.user_short_id_sequence RESTART WITH 1200',
),
// parameters: {
// 'newShortId': newShortId,
// },
);
Metadata
Metadata
Assignees
Labels
No labels