# File lib/dbd/pg/statement.rb, line 126
126:     def internal_finish
127:         @result.finish if @result
128:         statement_exists = @db._exec("select * from pg_prepared_statements where name='#{@stmt_name}'")
129:         if statement_exists.num_tuples > 0
130:             @db._exec("DEALLOCATE \"#{@stmt_name}\"")
131:         end
132:     end