mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Fix another compiler warning on Windows in InnoDB.
storage/innobase/handler/ha_innodb.cc: Fix compiler warning: ::get_auto_increment takes a ulonglong for nb_desired_values, but InnoDB's trx struct stores it as a ulint (unsigned long). Probably harmless, as a single statement won't be asking for more than 2^32 rows.
This commit is contained in:
parent
413a59a3bc
commit
41d3336319
1 changed files with 1 additions and 1 deletions
|
@ -7324,7 +7324,7 @@ ha_innobase::get_auto_increment(
|
|||
/* Called for the first time ? */
|
||||
if (prebuilt->trx->n_autoinc_rows == 0) {
|
||||
|
||||
prebuilt->trx->n_autoinc_rows = nb_desired_values;
|
||||
prebuilt->trx->n_autoinc_rows = (ulint) nb_desired_values;
|
||||
|
||||
/* It's possible for nb_desired_values to be 0:
|
||||
e.g., INSERT INTO T1(C) SELECT C FROM T2; */
|
||||
|
|
Loading…
Reference in a new issue