Permalink
Browse files

Updating node-db

  • Loading branch information...
1 parent e613202 commit c8f9fe9d7b269c9efc00a527d3dba626309f7c50 @mariano committed Jun 3, 2011
Showing with 11 additions and 11 deletions.
  1. +1 −1 lib/node-db
  2. +5 −5 src/result.cc
  3. +5 −5 src/result.h
Submodule node-db updated 5 files
+1 −1 connection.h
+4 −0 exception.cc
+2 −0 exception.h
+8 −0 result.cc
+5 −5 result.h
View
@@ -124,7 +124,7 @@ void node_db_drizzle::Result::free() throw() {
}
}
-bool node_db_drizzle::Result::hasNext() const {
+bool node_db_drizzle::Result::hasNext() const throw() {
return (this->nextRow != NULL);
}
@@ -175,19 +175,19 @@ node_db_drizzle::Result::Column* node_db_drizzle::Result::column(uint16_t i) con
return this->columns[i];
}
-uint64_t node_db_drizzle::Result::insertId() const {
+uint64_t node_db_drizzle::Result::insertId() const throw() {
return drizzle_result_insert_id(this->result);
}
-uint64_t node_db_drizzle::Result::affectedCount() const {
+uint64_t node_db_drizzle::Result::affectedCount() const throw() {
return drizzle_result_affected_rows(this->result);
}
-uint16_t node_db_drizzle::Result::warningCount() const {
+uint16_t node_db_drizzle::Result::warningCount() const throw() {
return drizzle_result_warning_count(this->result);
}
-uint16_t node_db_drizzle::Result::columnCount() const {
+uint16_t node_db_drizzle::Result::columnCount() const throw() {
return this->totalColumns;
}
View
@@ -26,15 +26,15 @@ class Result : public node_db::Result {
explicit Result(drizzle_st* drizzle, drizzle_result_st* result) throw(node_db::Exception&);
~Result();
- bool hasNext() const;
+ bool hasNext() const throw();
char** next() throw(node_db::Exception&);
unsigned long* columnLengths() throw(node_db::Exception&);
uint64_t index() const throw(std::out_of_range&);
Column* column(uint16_t i) const throw(std::out_of_range&);
- uint64_t insertId() const;
- uint16_t columnCount() const;
- uint64_t affectedCount() const;
- uint16_t warningCount() const;
+ uint64_t insertId() const throw();
+ uint16_t columnCount() const throw();
+ uint64_t affectedCount() const throw();
+ uint16_t warningCount() const throw();
uint64_t count() const throw(node_db::Exception&);
bool isBuffered() const throw();
bool isEmpty() const throw();

0 comments on commit c8f9fe9

Please sign in to comment.