H2 - CREATE TABLE creates wrong data type
问题 Testing my DAL with H2 in-memory database currently doesn't work because the data tye BINARY gets converted to VARBINARY: CREATE TABLE test ( pk_user_id INT AUTO_INCREMENT(1, 1) PRIMARY KEY, uuid BINARY(16) UNIQUE NOT NULL ); which results in a wrong data type if I check if the columns with the expected data types exists: 2017-03-20 16:24:48 persistence.database.Table check Unexpected column (UUID) or type (-3, VARBINARY) 回答1: tl;dr which results in a wrong data type No, not the wrong type,