Repository: olingo-odata4
Updated Branches:
  refs/heads/master 111239d7c -> 0e6c9a118


[OLINGO-581] Uri parser handles duration literals without time part

Signed-off-by: Christian Amend <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/42dc396c
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/42dc396c
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/42dc396c

Branch: refs/heads/master
Commit: 42dc396c8647dce1b4e6c3b133f3f87d305ba289
Parents: 111239d
Author: Christian Holzer <[email protected]>
Authored: Thu Feb 19 15:01:42 2015 +0100
Committer: Christian Amend <[email protected]>
Committed: Fri Feb 20 14:19:28 2015 +0100

----------------------------------------------------------------------
 .../antlr4/org/apache/olingo/server/core/uri/antlr/UriLexer.g4     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/42dc396c/lib/server-core/src/main/antlr4/org/apache/olingo/server/core/uri/antlr/UriLexer.g4
----------------------------------------------------------------------
diff --git 
a/lib/server-core/src/main/antlr4/org/apache/olingo/server/core/uri/antlr/UriLexer.g4
 
b/lib/server-core/src/main/antlr4/org/apache/olingo/server/core/uri/antlr/UriLexer.g4
index 13ed27a..f74e721 100644
--- 
a/lib/server-core/src/main/antlr4/org/apache/olingo/server/core/uri/antlr/UriLexer.g4
+++ 
b/lib/server-core/src/main/antlr4/org/apache/olingo/server/core/uri/antlr/UriLexer.g4
@@ -145,7 +145,7 @@ fragment DUTIMEFRAG         : 'T' (
                               ( DIGITS 'H' (DIGITS 'M')? DUSECONDFRAG?) 
                               | (DIGITS 'M' DUSECONDFRAG?) 
                               | DUSECONDFRAG
-                            );
+                            )?;
 fragment DUDAYTIMEFRAG      : DIGITS 'D' DUTIMEFRAG? | DUTIMEFRAG;
 DURATION                    : D U R A T I O N SQUOTE '-'? 'P' DUDAYTIMEFRAG 
SQUOTE;
 TIMEOFDAY                   : HOUR ':' MINUTE ( ':' SECOND ( '.' 
FRACTIONALSECONDS )? )?;

Reply via email to