simple distinct added

This commit is contained in:
2021-08-01 14:31:19 +02:00
parent 4a344d0e77
commit 50a7993a2e
9 changed files with 41 additions and 12 deletions

10
row.h
View File

@@ -84,6 +84,7 @@ namespace usql {
Row(const Row &other);
Row &operator=(Row other);
bool operator==(const Row &other) const {return this->compare(other) == 0; };
void setColumnNull(int col_index);
void setColumnValue(int col_index, long value);
@@ -92,13 +93,10 @@ namespace usql {
void setColumnValue(ColDefNode *col_def, ColValue *col_value);
void setColumnValue(ColDefNode *col_def, ValueNode *col_value);
ColValue &operator[](int i) {
return *m_columns[i];
}
ColValue &operator[](int i) { return *m_columns[i]; }
ColValue * ith_column(int i) const {
return m_columns[i].get();
}
ColValue * ith_column(int i) const { return m_columns[i].get(); }
int compare(const Row &other) const;
void print(const std::vector<int> & col_char_sizes);