This is actually a two-part bug.
First, I don't think that the 'global commands' (e.g.
quit, exit, clear, edit) should be allowed anywhere.
If we're in the middle of a DDL statement they should
probably be ignored. Otherwise you never know when
your column definitions will be interpreted as commands.
Second, there is an error in the regexps for the global
commands. I had a column in a table called EditorID,
which was interpreted by yasql as a request to edit the
file 'orID'. If the regexp
$input =~ /^\s*edit\s*(.*)$/i and $nprompt =
edit($1), last SWITCH;
were changed to
$input =~ /^\s*edit\s+(.*)$/i and $nprompt =
edit($1), last SWITCH;
(and similarly for the other commands) the problem
should be resolved.
Nobody/Anonymous ( nobody ) - 2002-07-24 17:46
5
Closed
None
Nobody/Anonymous
None
None
Public
|
Date: 2005-05-10 12:43 Logged In: YES |
|
Date: 2005-01-05 20:19 Logged In: NO |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2005-05-10 12:43 | qzy |
| close_date | - | 2005-05-10 12:43 | qzy |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use