Fix EDB xor implementation
This commit is contained in:
parent
59f944d691
commit
01d4b997b5
|
@ -73,6 +73,15 @@ public class PostgresPlusLegacyDialect extends PostgreSQLLegacyDialect {
|
|||
.setArgumentTypeResolver( StandardFunctionArgumentTypeResolvers.ARGUMENT_OR_IMPLIED_RESULT_TYPE )
|
||||
.register();
|
||||
}
|
||||
else {
|
||||
functionContributions.getFunctionRegistry().patternDescriptorBuilder(
|
||||
"bitxor",
|
||||
"((?1|?2)-(?1&?2))"
|
||||
)
|
||||
.setExactArgumentCount( 2 )
|
||||
.setArgumentTypeResolver( StandardFunctionArgumentTypeResolvers.ARGUMENT_OR_IMPLIED_RESULT_TYPE )
|
||||
.register();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -74,6 +74,15 @@ public class PostgresPlusDialect extends PostgreSQLDialect {
|
|||
.setArgumentTypeResolver( StandardFunctionArgumentTypeResolvers.ARGUMENT_OR_IMPLIED_RESULT_TYPE )
|
||||
.register();
|
||||
}
|
||||
else {
|
||||
functionContributions.getFunctionRegistry().patternDescriptorBuilder(
|
||||
"bitxor",
|
||||
"((?1|?2)-(?1&?2))"
|
||||
)
|
||||
.setExactArgumentCount( 2 )
|
||||
.setArgumentTypeResolver( StandardFunctionArgumentTypeResolvers.ARGUMENT_OR_IMPLIED_RESULT_TYPE )
|
||||
.register();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue