Zugang
Bilder
|
Rubriken
|
Übersichten
|
Forumsleben
|
Texte
|
Administratives
|
Hilfe
|
| Wunsch? | ✔ |
|---|---|
| Komponente ? | Software-Internes |
| Wichtigkeit ? | Trivial |
| Status ? | ACK |
| Beschreibung | |
|
insert_id() uses SELECT lastval() which returns the last sequence value used in the current database session, regardless of which table it came from. This is currently safe because there aren't any INSERT triggers or rules using sequences on other tables. So this is latent bug, which can be avoided: TODO: modules/discuss/discuss.php: $mid = mydb_get_insert_id(); | |