[jOOQ/jOOQ#12966] NullPointerException in MetaDataFieldProvider when
reading plain SQL column without a name in MySQL
This commit is contained in:
parent
8349672e57
commit
564fbb601b
@ -44,6 +44,7 @@ import static org.jooq.impl.DSL.name;
|
||||
import java.io.Serializable;
|
||||
import java.sql.ResultSetMetaData;
|
||||
import java.sql.SQLException;
|
||||
import java.util.Objects;
|
||||
|
||||
import org.jooq.Configuration;
|
||||
import org.jooq.DataType;
|
||||
@ -100,7 +101,7 @@ final class MetaDataFieldProvider implements Serializable {
|
||||
String columnLabel = meta.getColumnLabel(i);
|
||||
String columnName = meta.getColumnName(i);
|
||||
|
||||
if (columnName.equals(columnLabel)) {
|
||||
if (Objects.equals(columnName, columnLabel)) {
|
||||
try {
|
||||
String columnSchema = meta.getSchemaName(i);
|
||||
String columnTable = meta.getTableName(i);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user