Commit 814a9800 authored by Steve Müller's avatar Steve Müller

fix bit operator expressions in DB2

parent 597e69c5
...@@ -127,6 +127,22 @@ class DB2Platform extends AbstractPlatform ...@@ -127,6 +127,22 @@ class DB2Platform extends AbstractPlatform
return $autoinc; return $autoinc;
} }
/**
* {@inheritdoc}
*/
public function getBitAndComparisonExpression($value1, $value2)
{
return 'BITAND(' . $value1 . ', ' . $value2 . ')';
}
/**
* {@inheritdoc}
*/
public function getBitOrComparisonExpression($value1, $value2)
{
return 'BITOR(' . $value1 . ', ' . $value2 . ')';
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment