Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public class MySQLBooleanType extends BooleanType {

@Override
public DatabaseDataType toDatabaseDataType(Database database) {
if (database == null) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementing null safety guards in the database layer is a fundamental best practice for preventing unpredictable NullPointerExceptions. The logic here is concise and matches the core module's patterns.

return super.toDatabaseDataType(database);
}
if (database instanceof MySQLDatabase) {
DatabaseDataType result = new DatabaseDataType("TINYINT", 1);

Expand Down