mirror of
https://github.com/ankitects/anki.git
synced 2025-11-25 14:07:14 -05:00
17 lines
No EOL
324 B
SQL
17 lines
No EOL
324 B
SQL
UPDATE cards
|
|
SET due = (
|
|
CASE
|
|
WHEN queue = 2
|
|
AND due > 100000 THEN ?1
|
|
ELSE min(max(round(due), -2147483648), 2147483647)
|
|
END
|
|
),
|
|
mod = ?2,
|
|
usn = ?3
|
|
WHERE due != (
|
|
CASE
|
|
WHEN queue = 2
|
|
AND due > 100000 THEN ?1
|
|
ELSE min(max(round(due), -2147483648), 2147483647)
|
|
END
|
|
); |