Skip to main content

PostgresNullSupport

Trait PostgresNullSupport 

Source
pub trait PostgresNullSupport { }
Expand description

Marker trait for dialects that support GREATEST/LEAST (PostgreSQL).

SQLite does not have GREATEST/LEAST. While its multi-argument MAX/MIN are superficially similar, they have different NULL semantics: PostgreSQL ignores NULLs (GREATEST(1, NULL) = 1) while SQLite propagates them (MAX(1, NULL) = NULL).

Implementors§