DBD::SQL::Nano ORDER BY statements ending in ";"?

Mark Lawrence <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
I'm getting the the following error using DBI::SQL::Nano:

    DBD::DBM::db prepare failed: Bad ORDER BY clause ';'
        at /home/wose/.cpan/build/DBI-1.630-ZpcutD/blib/
        lib/DBI/DBD/SqlEngine.pm line 333.

for the following statement:

    SELECT
        name, phone
    FROM
        users
    ORDER BY
        name
    ;

As I understand the Nano docs the ORDER BY statement is actually ok,
but the error isn't.

If I remove the ORDER BY I get

    Couldn't find WHERE clause in '
    ;'

For:

    SELECT
        name, phone
    FROM
        users
    ;

So it looks to be a general issue with a trailing ";". Am I reading
this right?

Mark.
-- 
Mark Lawrence
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.