Readline auto-complete reads from 'tables' instead of 'sys.tables' #2639
Last updated: 2011-04-28 16:25:37 +0200
Date: 2010-08-03 15:40:45 +0200
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:220.127.116.11) Gecko/20100316 Firefox/3.6.2 ( .NET CLR 3.5.30729; .NET4.0C)
When first issuing "START TRANSACTION;" on an mclient prompt and then copy-pasting the following table creation code, I get an error. If I redo the script line by line it works fine (see below). Probably some concurrency conflict.
Reproducible: Didn't try
Steps to Reproduce:
CREATE TABLE params_str (paramname VARCHAR(500), value VARCHAR(10000));
Date: 2010-08-03 15:48:09 +0200
extra info: if the "create table"-statements are not within a single transaction (not prepended by 'start transaction'), the error message appears too, although each table does get created.
Date: 2010-08-23 09:44:19 +0200
ahhhh... i still have trouble reading the exact error message:
The bug is probably that there is a tab in the SQL script, which in turn triggers a 'readline' lookup for a list of table names. As the session was not in the 'sys'-schema, it cannot find the 'tables' table (it should have read 'sys.tables') and therefore invalidates the transaction.
Date: 2010-08-30 09:22:19 +0200
The Jun2010-SP2 version has been released.
Date: 2010-09-09 17:20:40 +0200
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=af483074f8f4
Date: 2010-09-09 17:20:41 +0200
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e18528196508
Date: 2010-09-09 17:20:42 +0200
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=05bccd5e318f
Date: 2010-09-09 17:22:09 +0200
Wouter, can you check?
No test, since we can't test interactive mclient.
Date: 2010-09-10 15:05:08 +0200
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=6f7a65979668
Date: 2010-09-15 15:45:10 +0200
I checked, the fix works.
Date: 2011-03-25 15:50:18 +0100
I don't think that after the fix this works really as it should.
After the fix, this internally looks for sys.tables, but in the prompt it gets completed to:
which is incorrect, because in the custom schema there is no 'tables'.
That should have completed to
Date: 2011-03-28 17:36:29 +0200
The Mar2011 version has been released.
Date: 2011-03-30 12:59:11 +0200
now the schema is added, solving this problem. Its not a very clean solution, but auto completion isn't by design.
Date: 2011-03-30 12:59:27 +0200
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=c48ef95dd242
Date: 2011-04-28 16:25:37 +0200
The Apr2011 release has been uploaded.
The text was updated successfully, but these errors were encountered: