Patrick,
Can you post the SQL statement?
>Does anyone know what the cause of this error is?
>
>Execution of function or command is not allowed in context of SQL command.
>
>ERROR: 2115
>
>
>It is skipped in the documentation.
>
>It has been recorded a couple times in my app's error log, it occurs in my shutdown procedure when the QUIT command is issued.