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).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§