Name

SQLITE_MAX_LIKE_PATTERN_LENGTH — Max search pattern length

Common Usage

SQLITE_MAX_LIKE_PATTERN_LENGTH=bytes

Default

50000 bytes

Description

The maximum length of a LIKE or GLOB search pattern. A maliciously crafted search pattern can consume a large number of resources, so if you allow arbitrary user search patterns, you might consider significantly lowering this value.

Get Using SQLite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.