Revision 12496
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
1063 | 1063 |
happen automatically even when an implicit cast is available */ |
1064 | 1064 |
left_::$$||util.typeof($3)||$$ |
1065 | 1065 |
, right_::$$||util.typeof($3) |
1066 |
/* when using the util.%==(anyelement, anyelement) operator, you must cast to |
|
1067 |
the *same* base type, *even though* this is optional when using a custom %== */ |
|
1068 |
,$$ left_::$$||util.typeof($3)||$$ |
|
1069 |
%== right_::$$||util.typeof($3)||$$ |
|
1070 |
-- refer to EXPLAIN output for expansion of %==$$ |
|
1066 | 1071 |
), $3) |
1067 | 1072 |
; |
1068 | 1073 |
END; |
Also available in: Unified diff
bugfix: schemas/util.sql: diff(text, text): in the %== comparison, it turns out you do need to cast the values to the same base type, even though this is optional when using a custom %==