/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to src/basic_statement.cc

  • Committer: edam
  • Date: 2010-02-02 16:13:16 UTC
  • Revision ID: edam@waxworlds.org-20100202161316-tceybmdeotltldow
- print "ok" when test program is successful!
- renamed 'Makefile's 'subdir.mk' so that the edam.mk build system will live happily along side an autotools build system

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
}
52
52
 
53
53
 
54
 
sqlite::basic_statement::~basic_statement()
 
54
sqlite::basic_statement::~basic_statement() throw( )
55
55
{
56
56
        finalize();
57
57
}
174
174
 
175
175
template< >
176
176
sqlite::basic_statement &sqlite::basic_statement::operator <<
177
 
        < sqlite::detail::null_t >(
178
 
        const sqlite::detail::null_t & )
 
177
        < sqlite::_null_t >(
 
178
        const sqlite::_null_t & )
179
179
{
180
180
        int error_code = bind_null( _bind_index );
181
181
        if( error_code != SQLITE_OK ) throw sqlite_error( error_code );
186
186
 
187
187
template< >
188
188
sqlite::basic_statement &sqlite::basic_statement::operator <<
189
 
        < sqlite::detail::exec_t >(
190
 
        const sqlite::detail::exec_t & )
 
189
        < sqlite::_exec_t >(
 
190
        const sqlite::_exec_t & )
191
191
{
192
192
        int error_code = step();
193
193
        if( error_code != SQLITE_DONE ) {
202
202
 
203
203
template< >
204
204
sqlite::basic_statement &sqlite::basic_statement::operator <<
205
 
        < sqlite::detail::set_index_t >(
206
 
        const sqlite::detail::set_index_t &t )
 
205
        < sqlite::_set_index_t >(
 
206
        const sqlite::_set_index_t &t )
207
207
{
208
208
        _bind_index = t._index;
209
209
        return *this;