Skip to content

Commit edd4553

Browse files
committed
Add notice_processor getter/setter to compat layer.
1 parent 30bae83 commit edd4553

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/postgres-pr/postgres-compat.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ def self.escape(str)
4343
str.gsub("'","''").gsub("\\", "\\\\\\\\")
4444
end
4545

46+
def notice_processor
47+
@conn.notice_processor
48+
end
49+
50+
def notice_processor=(np)
51+
@conn.notice_processor = np
52+
end
53+
4654
end
4755

4856
class PGresult

0 commit comments

Comments
 (0)