This is a discussion on Re: [INTERFACES] By Passed Domain Constraints within the pgsql Hackers forums, part of the PostgreSQL category; --> > You could work around this by explicitly specifying the parameter > type as text or varchar or whatever ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| > You could work around this by explicitly specifying the parameter > type as text or varchar or whatever the domain's base type is. > I wonder though if we oughtn't change the backend so that the inferred > type of a parameter symbol is never a domain, but the domain's base > type. That would force the proper application of CoerceToDomain inside > the constructed query parsetree. Remember we have similar weirdness when returning domain types from stored procs Chris ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match |