| 1848 | } |
| 1849 | |
| 1850 | void Statement::open(thread_db* tdbb, Transaction* tran, |
| 1851 | const MetaName* const* in_names, const ValueListNode* in_params, const ParamNumbers* in_excess, |
| 1852 | bool singleton) |
| 1853 | { |
| 1854 | fb_assert(isAllocated() && m_stmt_selectable); |
| 1855 | fb_assert(!m_error); |
| 1856 | fb_assert(!m_active); |
| 1857 | |
| 1858 | m_singleton = singleton; |
| 1859 | m_transaction = tran; |
| 1860 | |
| 1861 | setInParams(tdbb, in_names, in_params, in_excess); |
| 1862 | doOpen(tdbb); |
| 1863 | |
| 1864 | m_active = true; |
| 1865 | m_fetched = false; |
| 1866 | } |
| 1867 | |
| 1868 | bool Statement::fetch(thread_db* tdbb, const ValueListNode* out_params) |
| 1869 | { |