Skip to content

fix: wrap routine_definition in COALESCE to handle NULL#555

Open
GourangaDasSamrat wants to merge 1 commit intoxo:mainfrom
GourangaDasSamrat:fix/routine-definition-null-scan
Open

fix: wrap routine_definition in COALESCE to handle NULL#555
GourangaDasSamrat wants to merge 1 commit intoxo:mainfrom
GourangaDasSamrat:fix/routine-definition-null-scan

Conversation

@GourangaDasSamrat
Copy link

Fixes #554

routine_definition in information_schema.routines can be NULL for some function types (e.g. external/C functions). Scanning NULL into a plain string causes a scan error during tab completion.

Wrapping in COALESCE is consistent with how other nullable columns in the same query are already handled (routine_type, data_type).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tab completion error: Scan error on routine_definition NULL column

1 participant