How could I use begin with tag?

Jun 3, 2010 at 5:57 AM
Edited Jun 3, 2010 at 5:58 AM

A good tool., very nice.

But I can't find any way to generate a <beginwith> tag.

 

I think, shoud we use % to deal with it?Or support C# Method:BeginWith?

 

for example:

"where testfield like '32%'"

it means, testfield begin with '32'

 

or:

where testfield.BeginWith('32').

 

 

Aug 30, 2011 at 5:35 AM
Edited Aug 30, 2011 at 5:37 AM

Fix the bug that you are indicated: (the man forget put the LIKE reserved keyword in the below section code) in the file(\YACAMLQT\YACAMLQT\IdeSeg.SharePoint.Caml.QueryParser\LexScanner\Scanner.cs)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 

    private readonly Dictionary<string, TokenType> _reservedWords =
            new Dictionary<string, TokenType>
                {
                    {
                        "LIKE", TokenType.LIKE
                        },
                    {
                        "FALSE", TokenType.FALSE
                        },
                    {
                        "GROUPBY", TokenType.GROUPBY
                        },
                    {
                        "IS", TokenType.IS
                        },
                    {
                        "NOT", TokenType.NOT
                        },
                    {
                        "NULL", TokenType.NULL
                        },
                    {
                        "TRUE", TokenType.TRUE
                        },
                    {
                        "ORDERBY", TokenType.ORDERBY
                        },
                    {
                        "WHERE", TokenType.WHERE
                        },
                    {
                        "AND", TokenType.AND
                        },
                    {
                        "OR", TokenType.OR
                        },
                    {
                        "ASC", TokenType.ASC
                        },
                    {
                        "DESC", TokenType.DESC
                        },
                };