LEFT and RIGHT Functions Not Working

Bug #1009749 reported by Padraig O'Sullivan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Akiban SQL Parser
Fix Released
Medium
Vy Nguyen

Bug Description

server revision: 1778

posullivan=> select left('foo', 3);
ERROR: Encountered " "left" "left "" at line 1, column 8.
Was expecting:
    "*" ...

LINE 1: select left('foo', 3);
               ^
posullivan=>

posullivan=> select right('foo', 3);
ERROR: Encountered " "right" "right "" at line 1, column 8.
Was expecting:
    "*" ...

LINE 1: select right('foo', 3);
               ^
posullivan=>

summary: - LEFT Function Not Working
+ LEFT and RIGHT Functions Not Working
Revision history for this message
Vy Nguyen (oontvoo) wrote :

- RIGHT ins't implemented yet.

Revision history for this message
Mike McMahon (mmcm) wrote :

It's called get_left in the ITs.

Revision history for this message
Timothy Wegner (timmwegner) wrote : Re: [Bug 1009749] Re: LEFT and RIGHT Functions Not Working

Yes, the sql support
matrix<https://docs.google.com/a/akiban.com/spreadsheet/ccc?key=0AiGr_XWdHm0edFpXSTd6bUZZTDM3QXlTaFpha0hkNUE&hl=en_US#gid=9>
shows
we don't support RIGHT yet as Vy states. But Im unsure why we didn't
create an alias for LEFT ?

On Thu, Jun 7, 2012 at 5:13 PM, Mike McMahon <email address hidden>wrote:

> It's called get_left in the ITs.
>
> --
> You received this bug notification because you are a member of Akiban
> Technologies, which is subscribed to the bug report.
> https://bugs.launchpad.net/bugs/1009749
>
> Title:
> LEFT and RIGHT Functions Not Working
>
> Status in Akiban Server Project:
> New
>
> Bug description:
> server revision: 1778
>
> posullivan=> select left('foo', 3);
> ERROR: Encountered " "left" "left "" at line 1, column 8.
> Was expecting:
> "*" ...
>
> LINE 1: select left('foo', 3);
> ^
> posullivan=>
>
> posullivan=> select right('foo', 3);
> ERROR: Encountered " "right" "right "" at line 1, column 8.
> Was expecting:
> "*" ...
>
> LINE 1: select right('foo', 3);
> ^
> posullivan=>
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/akiban-server/+bug/1009749/+subscriptions
>

--
Akiban Technologies | Tim Wegner | VP of Engineering
skype: timmwegner | <email address hidden> | 508.735.6290

Vy Nguyen (oontvoo)
Changed in akiban-sql-parser:
importance: Undecided → Medium
Changed in akiban-server:
importance: Undecided → Medium
Changed in akiban-sql-parser:
status: New → Fix Committed
Changed in akiban-server:
status: New → Fix Committed
Changed in akiban-sql-parser:
assignee: nobody → Vy Nguyen (oontvoo)
Changed in akiban-server:
assignee: nobody → Vy Nguyen (oontvoo)
Revision history for this message
Vy Nguyen (oontvoo) wrote :

get_left isn't an alias. It's just what I called the function so it wouldn't conflict with the key word LEFT.

I had some TODOs in the yaml test file about that. But it's been awhile, and I totally forgot about it!

Changed in akiban-sql-parser:
status: Fix Committed → Fix Released
Changed in akiban-server:
status: Fix Committed → Fix Released
information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.