fix index sql insert bug on composite index, issue #2741