|
@@ -342,7 +342,7 @@ public class TableInfo implements Constants {
|
|
|
*/
|
|
|
public String getAllInsertSqlPropertyMaybeIf(final String prefix, boolean ignoreAutoIncrementColumn) {
|
|
|
final String newPrefix = prefix == null ? EMPTY : prefix;
|
|
|
- if (ignoreAutoIncrementColumn) {
|
|
|
+ if (ignoreAutoIncrementColumn && idType == IdType.AUTO) {
|
|
|
return fieldList.stream()
|
|
|
.map(i -> i.getInsertSqlPropertyMaybeIf(newPrefix)).filter(Objects::nonNull).collect(joining(NEWLINE));
|
|
|
}
|