Bug #47551 ndb_select_count usage does not say where the table names go
Submitted: 23 Sep 2009 12:32 Modified: 8 May 2013 15:24
Reporter: Jørgen Austvik Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:mysql-5.1-telco-7.0 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[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
[8 May 2013 15:24] Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html
[8 May 2013 15:34] Jon Stephens
Fixed in NDB 7.0+. Documented fix in the NDB 7.0.38, 7.1.27, and 7.2.13 changelogs as follows:

        The help text for ndb_select_count did not include any information 
        about table name usage.

Closed.