1. Michael Granger
  2. ruby-pg

Commits

Lars Kanis  committed de900bf

Add note about the usage scope of the result object received by the #set_notice_receiver block.

  • Participants
  • Parent commits 5e0e064
  • Branches default

Comments (0)

Files changed (1)

File ext/pg_connection.c

View file
  * the Proc object previously set, or +nil+ if it was previously the default.
  *
  * If you pass no arguments, it will reset the handler to the default.
+ *
+ * *Note:* The +result+ passed to the block should not be used outside
+ * of the block, since the corresponding C object could be freed after the
+ * block finishes.
  */
 static VALUE
 pgconn_set_notice_receiver(VALUE self)