The function
enable-sql-reader-syntax
turns on square bracket syntax and sets the state so that restore-sql-reader-syntax-state will make the syntax enabled if it is subsequently disabled.
disable-sql-reader-syntax
locally-disable-sql-reader-syntax
locally-enable-sql-reader-syntax
restore-sql-reader-syntax-state