List:Commits« Previous MessageNext Message »
From:Jonas Oreland Date:November 9 2010 12:55pm
Subject:bzr commit into mysql-5.1-telco-7.0-spj-scan-vs-scan branch (jonas:3351)
View as plain text  
#At file:///home/jonas/src/70-spj-svs/ based on revid:jan.wedvik@stripped

 3351 Jonas Oreland	2010-11-09
      ndb spj-svs - add NdbQueryDef::print()

    modified:
      storage/ndb/include/ndbapi/NdbQueryBuilder.hpp
      storage/ndb/src/ndbapi/NdbQueryBuilder.cpp
=== modified file 'storage/ndb/include/ndbapi/NdbQueryBuilder.hpp'
--- a/storage/ndb/include/ndbapi/NdbQueryBuilder.hpp	2010-09-03 13:04:45 +0000
+++ b/storage/ndb/include/ndbapi/NdbQueryBuilder.hpp	2010-11-09 12:54:59 +0000
@@ -479,6 +479,10 @@ public:
 
   NdbQueryDefImpl& getImpl() const;
 
+  /**
+   * Print the query in a semi human readable form
+   */
+  void print() const;
 private:
   NdbQueryDefImpl& m_impl;
 

=== modified file 'storage/ndb/src/ndbapi/NdbQueryBuilder.cpp'
--- a/storage/ndb/src/ndbapi/NdbQueryBuilder.cpp	2010-11-01 12:38:37 +0000
+++ b/storage/ndb/src/ndbapi/NdbQueryBuilder.cpp	2010-11-09 12:54:59 +0000
@@ -327,6 +327,12 @@ NdbQueryDef::release() const
   delete &getImpl();
 }
 
+void
+NdbQueryDef::print() const
+{
+  m_impl.getQueryOperation(0U).printTree(0, Bitmask<NDB_SPJ_MAX_TREE_NODES>());
+}
+
 /*************************************************************************
  * Glue layer between NdbQueryOperand interface and its Impl'ementation.
  ************************************************************************/


Attachment: [text/bzr-bundle] bzr/jonas@mysql.com-20101109125459-twp1de5gkhldoih2.bundle
Thread
bzr commit into mysql-5.1-telco-7.0-spj-scan-vs-scan branch (jonas:3351) Jonas Oreland9 Nov