MantisBT: master 5a523672

Author Committer Branch Timestamp Parent
cproensa dregad master 2017-08-27 14:34 master 5a883c3f
Affected Issues  0023268: Error filtering custom fields of type date
Changeset

Fix oracle sql syntax for table alias

Fix the oracle syntax to not remove those "AS" that are part of CAST
expressions.

Oracle doesn't suppor AS keyword as part of table aliases.
Previous code was modifying the query sql to remove all appearances of
"AS". However, "AS" can also appear as part of a CAST expression:
CAST( x AS y )

Fixes: 0023268

mod - core/database_api.php Diff File