5 Commits

Author SHA1 Message Date
Nathan Woodrow
c467e79f3c Add expression functions for handling date/time:
- year,month,day,hour,minute,second extraction
    - new QgsInterval objects - handles time amounts
    - age() function returns the difference between two  datetimes
    - $now returns the current date and time
    - support for datetime - interval = new datetime
    - tointerval, todate, totime functions
    - tests ;)
2012-06-30 20:40:54 +10:00
Martin Dobias
bf86521d49 Fixes for refinement of rules.
- quoting of columns (#5536 and #5542)
- quoting of string
- do not quote of numbers (avoids type cast during evaluation)
- use at least 4 floating point digits for doubles
2012-06-02 00:08:26 +02:00
Martin Dobias
c8bb12f7bb Expressions - conditional expressions (CASE)
Right now only without "base" expression:
CASE WHEN cond1 THEN exp1 [WHEN cond2 THEN exp2]* [ELSE exp3] END
2012-01-07 01:20:03 +01:00
Martin Dobias
06e3c725bc Expressions: support for visitor pattern, expresion->OGCFilter now a visitor 2012-01-06 20:54:51 +01:00
Martin Dobias
98a1c233af Added python bindings for QgsExpression 2011-08-09 20:48:13 +02:00