Welcome Guest, Not a member yet? Register   Sign In
Bug with insert in database Oracle
#1

[eluser]Mauricio N[/eluser]
well i set some datas in the array with the names of colums and datas to insert:

Code:
$data['SOLICITACAO_ID'] = 5;
        $data['SOLICITACAO_SOLICITANTE'] = $this->input->get_post('solicitante');
        $data['SOLICITACAO_SETOR'] = $this->input->get_post('setor');
        $data['SOLICITACAO_PATRIMONIO'] = $this->input->get_post('patrimonio');
        $data['SOLICITACAO_DATA'] = $this->input->get_post('data');
        $data['SOLICITACAO_DESCPRODUTO'] = $this->input->get_post('descProduto');
        $data['SOLICITACAO_DESCPROBLEMA'] = $this->input->get_post('descProblema');    
        
        $this->load->model('SolicitacaoModel');
        $this->SolicitacaoModel->set_solicitacao($data);


the model:

Code:
[...]

    public function set_solicitacao($data)
    {
        $this->db->insert('CI_MANUTENCAO_SOLICITACAO', $data);        
    }

[...]

Then when execute... i receive the error message:

A Database Error Occurred

Error Number:

Code:
INSERT INTO CI_MANUTENCAO_SOLICITACAO (SOLICITACAO_ID, SOLICITACAO_SOLICITANTE, SOLICITACAO_SETOR, SOLICITACAO_PATRIMONIO, SOLICITACAO_DATA, SOLICITACAO_DESCPRODUTO, SOLICITACAO_DESCPROBLEMA)
VALUES (5, 'Maurício Natanael Ferreira', 'afasdf', 'asdfasdf', '12-11-2010 15:02', 'asdfasd', 'fasdfasdf')

BUT I COPY THIS SQL AND PASTE IN PL/SQL, and the insert execute sucessfully.

i don´t know how fix it.

someone can help me?
#2

[eluser]danmontgomery[/eluser]
It says Error Number: but doesn't give you an actual error message?
#3

[eluser]Mauricio N[/eluser]
[quote author="noctrum" date="1289623214"]It says Error Number: but doesn't give you an actual error message?[/quote]

No just appear:

A Database Error Occurred

Error Number:

INSERT INTO ....


but no error number or error message.
#4

[eluser]InsiteFX[/eluser]
Did you setup application/config/database.php ?
Did you load the CodeIgniter database ?

InsiteFX
#5

[eluser]Mauricio N[/eluser]
[quote author="InsiteFX" date="1289698648"]Did you setup application/config/database.php ?
Did you load the CodeIgniter database ?

InsiteFX[/quote]


yes man... i'm using session database. with oracle database




Theme © iAndrew 2016 - Forum software by © MyBB