Fix EDB xor implementation

This commit is contained in:
Christian Beikov 2024-07-23 20:22:14 +02:00
parent 59f944d691
commit 01d4b997b5
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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