diff options
| author | randomdan <randomdan@localhost> | 2011-02-18 12:58:59 +0000 | 
|---|---|---|
| committer | randomdan <randomdan@localhost> | 2011-02-18 12:58:59 +0000 | 
| commit | c3f2a299a734494a61a49709a8e4cc335570b3d3 (patch) | |
| tree | b5bf5bb8e01ad1e41ff5957c17fb60e3c353cfd9 /libodbcpp/column.cpp | |
| parent | Add check function for when a connection is finished with, but you don't want... (diff) | |
| download | libdbpp-odbc-c3f2a299a734494a61a49709a8e4cc335570b3d3.tar.bz2 libdbpp-odbc-c3f2a299a734494a61a49709a8e4cc335570b3d3.tar.xz libdbpp-odbc-c3f2a299a734494a61a49709a8e4cc335570b3d3.zip  | |
Handle the case when the driver tries to save more data than the buffer is big enough, and doesn't bother to mention it
Use the driver's bindSize as a hint as to how much buffer to allocate up front
Diffstat (limited to 'libodbcpp/column.cpp')
| -rw-r--r-- | libodbcpp/column.cpp | 16 | 
1 files changed, 7 insertions, 9 deletions
diff --git a/libodbcpp/column.cpp b/libodbcpp/column.cpp index b041bd4..a34946a 100644 --- a/libodbcpp/column.cpp +++ b/libodbcpp/column.cpp @@ -17,13 +17,14 @@ ODBC::Column::~Column()  {  } -void -ODBC::Column::resize(SQLHANDLE) +bool +ODBC::Column::resize()  { +	return false;  } -void -ODBC::CharArrayColumn::resize(SQLHANDLE) +bool +ODBC::CharArrayColumn::resize()  {  	if (bindLen >= SQLLEN(data.size())) {  		data.resize(bindLen + 1); @@ -32,12 +33,9 @@ ODBC::CharArrayColumn::resize(SQLHANDLE)  			paramBound = false;  			Param::bind();  		} +		return true;  	} -} - -void -ODBC::Column::onScroll() -{ +	return false;  }  bool  | 
