MCPcopy Create free account
hub / github.com/MariaDB/server / GetBuffer

Method GetBuffer

storage/connect/tabodbc.cpp:1033–1041  ·  view source on GitHub ↗

/ Returns the buffer to use for Fetch or Extended Fetch. */ /

Source from the content-addressed store, hash-verified

1031/* Returns the buffer to use for Fetch or Extended Fetch. */
1032/***********************************************************************/
1033void *ODBCCOL::GetBuffer(DWORD rows)
1034{
1035 if (rows && To_Tdb) {
1036 assert(rows == (DWORD)((TDBODBC*)To_Tdb)->Rows);
1037 return Bufp;
1038 } else
1039 return (Buf_Type == TYPE_DATE) ? Sqlbuf : Value->GetTo_Val();
1040
1041} // end of GetBuffer
1042
1043/***********************************************************************/
1044/* Returns the buffer length to use for Fetch or Extended Fetch. */

Callers 2

ExecDirectSQLMethod · 0.80
odbconn.cppFile · 0.80

Calls 1

GetTo_ValMethod · 0.80

Tested by

no test coverage detected