[opensuse] mysql upgrade 5.0.51 to 5.1.36 - TRUNCATE/DROP on temp table?
After my upgrade to 5.1.36 I hit this odd little problem: I have an application which does roughly this: CREATE TEMP TABLE new LIKE old; populate 'new'. do some stuff TRUNCATE new; populate again This has always worked fine, but after the upgrade it failed because the user does not have DROP authority on 'new'. Can anyone explain to me what caused this change in behaviour? For the time being I've changed the TRUNCATE to a DELETE. /Per -- Per Jessen, Zürich (13.7°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
After my upgrade to 5.1.36 I hit this odd little problem:
I have an application which does roughly this:
CREATE TEMP TABLE new LIKE old; populate 'new'. do some stuff TRUNCATE new; populate again
This has always worked fine, but after the upgrade it failed because the user does not have DROP authority on 'new'. Can anyone explain to me what caused this change in behaviour? For the time being I've changed the TRUNCATE to a DELETE.
I get to answer that one myself - from the manual: "Beginning with MySQL 5.1.16, the DROP privilege is required for TRUNCATE TABLE (before that, TRUNCATE TABLE requires the DELETE privilege). " /Per -- Per Jessen, Zürich (15.5°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Per Jessen