Support needed for char, regproc, oid array types

Bug #273123 reported by Ilan Volow
2
Affects Status Importance Assigned to Milestone
pg8000
Fix Committed
Undecided
Mariano Reingart

Bug Description

Here's three more PostgreSQL types that I found my code crashing on.

Below are the lines I added to the pg_types array in types.py to get them to work.

18: {"txt_in": varcharin}, # char type
24: {"bin_in": int4recv}, # regproc type
30: {"txt_in": varcharin}, # OID array type

The last two tend to get used when querying the pg_type table, which is probably the best way of testing the changes to make sure that they work.

Tags: types
Changed in pg8000:
assignee: nobody → Mariano Reingart (reingart)
Revision history for this message
Mariano Reingart (reingart) wrote :

I've made a maintenance fork:

http://code.google.com/p/pg8000/

I've applied your patch, including also suport for OID[]:

http://code.google.com/p/pg8000/source/detail?r=17c6d0feecd16b403076016cb0e2d85acf1bdd67

Thanks

Changed in pg8000:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.