Commit 6058e02
committed
MDEV-37172 Server crashes in Item_func_nextval::update_table after INSERT to the table, that uses expression with nextval() as default
The issue was that unpack_vcol_info_from_frm() wrongly linked the used
sequence tables into tables->internal_tables when more than one sequence
table was used.
Other things:
- Fixed internal_table_exists() to take db into account.
(This is making the code easier to read. As we where comparing
pointers the old code also worked).1 parent e3e4013 commit 6058e02
File tree
5 files changed
+68
-10
lines changed- mysql-test/suite/sql_sequence
- sql
5 files changed
+68
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
316 | 349 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
243 | 266 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4722 | 4722 | | |
4723 | 4723 | | |
4724 | 4724 | | |
4725 | | - | |
| 4725 | + | |
4726 | 4726 | | |
4727 | 4727 | | |
4728 | 4728 | | |
4729 | | - | |
| 4729 | + | |
| 4730 | + | |
4730 | 4731 | | |
4731 | 4732 | | |
4732 | 4733 | | |
| |||
4747 | 4748 | | |
4748 | 4749 | | |
4749 | 4750 | | |
4750 | | - | |
4751 | | - | |
| 4751 | + | |
4752 | 4752 | | |
4753 | 4753 | | |
4754 | 4754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8438 | 8438 | | |
8439 | 8439 | | |
8440 | 8440 | | |
8441 | | - | |
8442 | | - | |
| 8441 | + | |
| 8442 | + | |
8443 | 8443 | | |
8444 | 8444 | | |
8445 | 8445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3942 | 3942 | | |
3943 | 3943 | | |
3944 | 3944 | | |
| 3945 | + | |
3945 | 3946 | | |
3946 | 3947 | | |
3947 | 3948 | | |
| |||
3959 | 3960 | | |
3960 | 3961 | | |
3961 | 3962 | | |
3962 | | - | |
| 3963 | + | |
3963 | 3964 | | |
3964 | | - | |
3965 | | - | |
3966 | | - | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
3967 | 3969 | | |
3968 | 3970 | | |
3969 | 3971 | | |
| |||
0 commit comments