Re: Help with calling a procedure
Hello, I solve the problem looking at the gennerated file and do some adjustment, I replace what is commented with red line:
if ($bInsertOk)
{
if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_access))
{
$comando = “SP_ABM_CONVOCATORIA $this->band, $this->i_idconvocatoria, $this->idsede, $this->idmalla, #$this->fechaini#, #$this->fechafin#, ‘$this->observacion’, ‘$this->estado’, $this->cursoini, $this->cursofin, $this->semini, $this->semfin, ‘$this->turno’, ‘$this->descperiodo’, #$this->peracadinicio#, #$this->peracadfin#, #$this->pereconinicio#, #$this->pereconfin#, #$this->validodesde#, #$this->validohasta#”;
}
elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_mssql))
{
$comando = “SP_ABM_CONVOCATORIA $this->band, $this->i_idconvocatoria, $this->idsede, $this->idmalla, ‘$this->fechaini’, ‘$this->fechafin’, ‘$this->observacion’, ‘$this->estado’, $this->cursoini, $this->cursofin, $this->semini, $this->semfin, ‘$this->turno’, ‘$this->descperiodo’, ‘$this->peracadinicio’, ‘$this->peracadfin’, ‘$this->pereconinicio’, ‘$this->pereconfin’, ‘$this->validodesde’, ‘$this->validohasta’”;
}
elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_oracle))
{
$comando = “BEGIN SP_ABM_CONVOCATORIA($this->band, $this->i_idconvocatoria, $this->idsede, $this->idmalla, ‘$this->fechaini’, ‘$this->fechafin’, ‘$this->observacion’, ‘$this->estado’, $this->cursoini, $this->cursofin, $this->semini, $this->semfin, ‘$this->turno’, ‘$this->descperiodo’, ‘$this->peracadinicio’, ‘$this->peracadfin’, ‘$this->pereconinicio’, ‘$this->pereconfin’, ‘$this->validodesde’, ‘$this->validohasta’); END;”;
}
elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_postgres))
{
$comando = “SELECT SP_ABM_CONVOCATORIA( $this->band, $this->i_idconvocatoria, $this->idsede, $this->idmalla, ‘$this->fechaini’, ‘$this->fechafin’, ‘$this->observacion’, ‘$this->estado’, $this->cursoini, $this->cursofin, $this->semini, $this->semfin, ‘$this->turno’, ‘$this->descperiodo’, ‘$this->peracadinicio’, ‘$this->peracadfin’, ‘$this->pereconinicio’, ‘$this->pereconfin’, ‘$this->validodesde’, ‘$this->validohasta’)”;
}
elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_mysql))
{
$comando = “CALL SP_ABM_CONVOCATORIA( $this->band, $this->i_idconvocatoria, $this->idsede, $this->idmalla, ‘$this->fechaini’, ‘$this->fechafin’, ‘$this->observacion’, ‘$this->estado’, $this->cursoini, $this->cursofin, $this->semini, $this->semfin, ‘$this->turno’, ‘$this->descperiodo’, ‘$this->peracadinicio’, ‘$this->peracadfin’, ‘$this->pereconinicio’, ‘$this->pereconfin’, ‘$this->validodesde’, ‘$this->validohasta’)”;
}
else
{
//$comando = “SP_ABM_CONVOCATORIA $this->band, $this->i_idconvocatoria, $this->idsede, $this->idmalla, ‘$this->fechaini’, ‘$this->fechafin’, ‘$this->observacion’, ‘$this->estado’, $this->cursoini, $this->cursofin, $this->semini, $this->semfin, ‘$this->turno’, ‘$this->descperiodo’, ‘$this->peracadinicio’, ‘$this->peracadfin’, ‘$this->pereconinicio’, ‘$this->pereconfin’, ‘$this->validodesde’, ‘$this->validohasta’”;
[b]$comando = "execute procedure SP_ABM_CONVOCATORIA $this->band, $this->i_idconvocatoria, $this->idsede, $this->idmalla, '$this->fechaini', '$this->fechafin', '$this->observacion', '$this->estado', $this->cursoini, $this->cursofin, $this->semini, $this->semfin, '$this->turno', '$this->descperiodo', '$this->peracadinicio', '$this->peracadfin', '$this->pereconinicio', '$this->pereconfin', '$this->validodesde', '$this->validohasta'";[/b]