simple distinct added
This commit is contained in:
10
row.h
10
row.h
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user