示例#1
0
error blob::select(session& s,
                   char const* ztable,
                   char const* zcolumn,
                   rowid id,
                   bool readandwrite) noexcept
{
    close();

    m_session = &s;

    int result = sqlite3_blob_open(s.get_connection(),
    "main",
    ztable,
    zcolumn,
    id,
    readandwrite ? 1 : 0,
    &m_blob);

    return detail::sqliteerror(__file__, __line__, result);
}
示例#2
0
文件: blob.cpp 项目: lucem/VFLib
Error blob::select (session& s,
                    char const* zTable,
                    char const* zColumn,
                    rowid id,
                    bool readAndWrite) noexcept
{
  close();

  m_session = &s;

  int result = sqlite3_blob_open (s.get_connection(),
                                  "main",
                                  zTable,
                                  zColumn,
                                  id,
                                  readAndWrite ? 1 : 0,
                                  &m_blob );

  return detail::sqliteError (__FILE__, __LINE__, result);
}