Group skipped on buffer resize When the buffer is too small, libnss-mysql returns NSS_TRYAGAIN so that the OS doubles the buffer size and call the function again. However the MySQL resultset is not reset, so when the function is called again, it uses the next row, and hence skips an entry.
This is a proof-of-concept patch that use mysql_row_tell and mysql_row_seek to fix this issue.