While testing the upgrade from MySQL 5.1 to MariaDB 5.5 I ran into the following change in behavior. 

Please note this is using a non-root user with alter table privileges on a slave (read-only) server in both cases.

**MySQl 5.1:**

```
mysql> create temporary table testtest (id int);
Query OK, 0 rows affected (0.00 sec)

mysql> ALTER TABLE `testtest` ADD PRIMARY KEY(`id`);
Query OK, 0 rows affected (0.00 sec)
Records: 0  Duplicates: 0  Warnings: 0

```

**MariaDB 5.5:**

```
MariaDB [pollstream_common]> create temporary table testtest (id int);
Query OK, 0 rows affected (0.20 sec)

MariaDB [pollstream_common]> ALTER TABLE `testtest` ADD PRIMARY KEY(`id`);
ERROR 1290 (HY000): The MariaDB server is running with the --read-only option so it cannot execute this statement

```

Does anyone know if this change in behavior is by design or, either way, if there may be a workaround for it? Since it would be a considerable undertaking to change and test existent code which was implemented using the former version and which has been working for a while.

Thanks in advance!