Opened 17 years ago

Last modified 17 years ago

#1022 closed enhancement

Add support for using regular expressions in queries — at Version 1

Reported by: Nicklas Nordborg Owned by: everyone
Priority: minor Milestone: BASE 2.8
Component: core Version:
Keywords: Cc:

Description (last modified by Nicklas Nordborg)

This is not in the SQL standard, but both Postgres and MySQL have an implementation. The syntax is of course different, but we have already other cases where this is the case (for example, taking the logarithm). The only worry is that using regular expressions on large tables (eg. the reporters table) may not be good for performance.

Implementation wise this should not be very difficult. We need to add methods to the DbEngine interface. The DefaultDb enginge needs to be extended with a method and the AbstractDbEngine should provide a default implementation. I think the default implementation should use equality testing in case of any better option.

Note! This ticket is about support in the core only. See #1023 for support in the web interface.

Change History (1)

comment:1 by Nicklas Nordborg, 17 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.