CREATE TABLE TEST (
id INTEGER PRIMARY KEY,
field VARCHAR(50) NOT NULL,
time TIMESTAMP NULL,
UNIQUE KEY field_unique ( field ),
UNIQUE KEY time_unique ( time )
);
SELECT * FROM test WHERE id = @id; -- should use `select_one_maybe`
SELECT * FROM test WHERE field = @field; -- should use `select_one_maybe`
SELECT * FROM test WHERE time = @time; -- should use `select` since the column is nullable
I know it's possible to achieve a similar behaviour with LIMIT 1. This is just a convenience feature request.
For example:
I know it's possible to achieve a similar behaviour with
LIMIT 1
. This is just a convenience feature request.