Loading sql/ha_innobase.cc +8 −2 Original line number Diff line number Diff line Loading @@ -1868,7 +1868,7 @@ corresponding row to buf. */ int ha_innobase::index_first( /*=====================*/ /* out: 0, HA_ERR_KEY_NOT_FOUND, /* out: 0, HA_ERR_END_OF_FILE, or error code */ mysql_byte* buf) /* in/out: buffer for the row */ { Loading @@ -1879,6 +1879,12 @@ ha_innobase::index_first( error = index_read(buf, NULL, 0, HA_READ_AFTER_KEY); /* MySQL does not seem to allow this to return HA_ERR_KEY_NOT_FOUND */ if (error == HA_ERR_KEY_NOT_FOUND) { error = HA_ERR_END_OF_FILE; } DBUG_RETURN(error); } Loading Loading
sql/ha_innobase.cc +8 −2 Original line number Diff line number Diff line Loading @@ -1868,7 +1868,7 @@ corresponding row to buf. */ int ha_innobase::index_first( /*=====================*/ /* out: 0, HA_ERR_KEY_NOT_FOUND, /* out: 0, HA_ERR_END_OF_FILE, or error code */ mysql_byte* buf) /* in/out: buffer for the row */ { Loading @@ -1879,6 +1879,12 @@ ha_innobase::index_first( error = index_read(buf, NULL, 0, HA_READ_AFTER_KEY); /* MySQL does not seem to allow this to return HA_ERR_KEY_NOT_FOUND */ if (error == HA_ERR_KEY_NOT_FOUND) { error = HA_ERR_END_OF_FILE; } DBUG_RETURN(error); } Loading