Bug #47551 ndb_select_count usage does not say where the table names go
Submitted: 23 Sep 2009 12:32 Modified: 3 Mar 2010 9:13
Reporter: Jørgen Austvik Email Updates:
Status: Patch pending
Category:Server: Cluster Severity:S3 (Non-critical)
Version:mysql-5.1-telco-7.0 OS:Any
Assigned to: jack andrews Target Version:
Triage: Triaged: D4 (Minor) / R2 (Low) / E2 (Low)

[23 Sep 2009 12:32] Jørgen Austvik
Description:
[ja155679@asator03:test] /test/install/mysql-5.1-telco-7.0/bin/ndb_select_count          
         
Usage: /test/install/mysql-5.1-telco-7.0/bin/ndb_select_count [OPTIONS]

(none of the options mention table names)

Online documentation:

http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster-programs-ndb-select-count.html
ndb_select_count [-c connect_string] -ddb_name tbl_name[, tbl_name2[, ...]]

How to repeat:
./bin/ndb_select_count

Suggested fix:
Usage: /test/install/mysql-5.1-telco-7.0/bin/ndb_select_count [OPTIONS] table_name
[table_name2]...
[30 Oct 2009 12:17] Hartmut Holzgraefe
I'm a bit confused by the argument specification in select_count.cpp
as "database", "parallelism" and "lock" all seem to be mandatory?

  { "database", 'd', "Name of database table is in",
    (uchar**) &_dbname, (uchar**) &_dbname, 0,
    GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
  { "parallelism", 'p', "parallelism",
    (uchar**) &_parallelism, (uchar**) &_parallelism, 0,
    GET_INT, REQUIRED_ARG, 240, 0, 0, 0, 0, 0 },
  { "lock", 'l', "Read(0), Read-hold(1), Exclusive(2)",
    (uchar**) &_lock, (uchar**) &_lock, 0,
    GET_INT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
[6 Nov 2009 15:56] Jon Stephens
Hi,

Issues with the docs that you want me to fix should be filed as Server:Docs; otherwise, I
might never see them.

Lead for Docs bugs should be Stefan Hinz. 

Updated category and lead.
[6 Nov 2009 16:19] Jon Stephens
I've corrected the 'Usage' shown in the documentation:
http://lists.mysql.com/commits/89637
[6 Nov 2009 16:21] Jon Stephens
Now for the part of this that needs to be fixed in the app itself...

Set Assignee/Category/Status/Lead to Unassigned/Server:Cluster/Verified/BOcklin.
[26 Feb 2010 6:38] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/101551

3414 Jack Andrews	2010-02-26
      Bug #47551  ndb_select_count usage does not say where the table names go
[3 Mar 2010 9:13] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/102151

3414 Jack Andrews	2010-03-03
      bug #47551 ndb_select_count usage does not say where the table names go