The function locally-enable-sql-reader-syntax
turns on square bracket syntax and does not change the syntax state. This ensures that restore-sql-reader-syntax-state
restores the current enable/disable state.
The intended use of locally-enable-sql-reader-syntax
is in a file:
#.(locally-enable-sql-reader-syntax)
<SQL commands using [...] syntax>
#.(restore-sql-reader-syntax-state)
disable-sql-reader-syntax
enable-sql-reader-syntax
locally-disable-sql-reader-syntax
restore-sql-reader-syntax-state