| 1793 | } |
| 1794 | |
| 1795 | void DeclareSubFuncNode::genParameters(DsqlCompilerScratch* dsqlScratch, |
| 1796 | Array<NestConst<ParameterClause> >& paramArray) |
| 1797 | { |
| 1798 | dsqlScratch->appendUShort(USHORT(paramArray.getCount())); |
| 1799 | |
| 1800 | for (NestConst<ParameterClause>* i = paramArray.begin(); i != paramArray.end(); ++i) |
| 1801 | { |
| 1802 | ParameterClause* param = *i; |
| 1803 | dsqlScratch->appendNullString(param->name.c_str()); |
| 1804 | |
| 1805 | if (param->defaultClause) |
| 1806 | { |
| 1807 | dsqlScratch->appendUChar(1); |
| 1808 | GEN_expr(dsqlScratch, param->defaultClause->value); |
| 1809 | } |
| 1810 | else |
| 1811 | dsqlScratch->appendUChar(0); |
| 1812 | } |
| 1813 | } |
| 1814 | |
| 1815 | const StmtNode* DeclareSubFuncNode::execute(thread_db* /*tdbb*/, Request* request, ExeState* /*exeState*/) const |
| 1816 | { |
no test coverage detected