summaryrefslogtreecommitdiff
path: root/storage/connect/tabpivot.h
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2014-04-08 18:18:02 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2014-04-08 18:18:02 +0200
commitbe1ee90b4412fb0b111c2090ee7b1baa3490e0f7 (patch)
treea1b2482a6a9c230fd1ad6e4e0d804edb081054df /storage/connect/tabpivot.h
parent16893bc076dffb0b383d5f5e2b64fae8535bd10a (diff)
downloadmariadb-git-be1ee90b4412fb0b111c2090ee7b1baa3490e0f7.tar.gz
- Add the "skipcol" option to Pivot tables.
modified: storage/connect/ha_connect.cc storage/connect/tabpivot.cpp storage/connect/tabpivot.h
Diffstat (limited to 'storage/connect/tabpivot.h')
-rw-r--r--storage/connect/tabpivot.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/storage/connect/tabpivot.h b/storage/connect/tabpivot.h
index 0b5bf50d13b..c7248ee2e1d 100644
--- a/storage/connect/tabpivot.h
+++ b/storage/connect/tabpivot.h
@@ -18,12 +18,13 @@ class PIVAID : public CSORT {
friend class SRCCOL;
public:
// Constructor
- PIVAID(const char *tab, const char *src, const char *picol,
- const char *fncol, const char *host, const char *db,
- const char *user, const char *pwd, int port);
+ PIVAID(const char *tab, const char *src, const char *picol,
+ const char *fncol, const char *skcol, const char *host,
+ const char *db, const char *user, const char *pwd, int port);
// Methods
PQRYRES MakePivotColumns(PGLOBAL g);
+ bool SkipColumn(PCOLRES crp, char *skc);
// The sorting function
virtual int Qcompare(int *, int *);
@@ -40,6 +41,7 @@ class PIVAID : public CSORT {
char *Tabsrc; // SQL of source table
char *Picol; // Pivot column name
char *Fncol; // Function column name
+ char *Skcol; // Skipped columns
PVBLK Rblkp; // The value block of the pivot column
int Port; // MySQL port number
}; // end of class PIVAID
@@ -191,6 +193,6 @@ class SRCCOL : public PRXCOL {
PQRYRES PivotColumns(PGLOBAL g, const char *tab, const char *src,
const char *picol, const char *fncol,
- const char *host, const char *db,
- const char *user, const char *pwd,
- int port);
+ const char *skcol, const char *host,
+ const char *db, const char *user,
+ const char *pwd, int port);