opEmptyStringNull

Type: TParseOption | Unit: EgStrParser

Applies to itString only. Empty tokens (empty input, empty list positions and quoted empty strings '') give NULL in SQLValues instead of an empty quoted string ''.

Input: hello;;world, itString, [opEmptyStringNull]
  SQLValues:     'hello', NULL, 'world'
  SQLExpression: IN ('hello', NULL, 'world')

Input: hello;;world, itString, []
  SQLValues:     'hello', '', 'world'
  SQLExpression: IN ('hello', '', 'world')

Empty input with this option gives IS NULL (or IS NOT NULL with sopNotEqual) instead of = ''.

Combined with opNotNull, empty string tokens give ERR_NULL_NOT_ALLOWED.

See Also

(C) 2026 Easygate, Lda