On Monday, 6 May 2013 at 09:14:57 UTC, Kagamin wrote:
On Monday, 29 April 2013 at 09:38:10 UTC, David wrote:
Null blows up your code, "" doesn't.

There's no difference between null and empty string in D.

Also it's a SQL thing, "NotNull"
must be initialized, when the row is filled.

Full SQL support is good to have. I question the decision to make it default.

Current implementation looks consistent:

D type -- SQL type
int    -- INT NOT NULL
Int    -- INT NULL
long   -- BIGINT NOT NULL
Long   -- BIGINT NULL
string -- VARCHAR(255) NOT NULL
String -- VARCHAR(255) NULL

Uppercase types are nullable.

@NotNull/@Null annotations are not required. Nullability can be inferred from type name.

Reply via email to