ORA-01460: conversion not implemented or not resolvable.
Posted: Tue 08 Dec 2020 02:51
I'm having trouble running storeprocedure on delphi 10.2 version unidac 7.2.7, oracle 19C.
Procedure Oracle.
PROCEDURE P_INSERE_PRG_INSTALL_SCRIPT(P_SPIN_SCRIPT IN PRG_INSTALL_SCRIPT_TESTE.SPIN_SCRIPT%TYPE)
IS
BEGIN
DELETE PRG_INSTALL_SCRIPT_TESTE;
INSERT INTO PRG_INSTALL_SCRIPT_TESTE
(SPIN_SCRIPT, DATA)
VALUES
(P_SPIN_SCRIPT, SYSDATE);
END;
Routine implemented in delphi
procedure TForm1.Button3Click(Sender: TObject);
var
M : TStringStream;
begin
M := TStringStream.Create;
M.LoadFromFile(edit4.Text);
try
if not PreparaStoredProc ('GONDOLA.AM_TESTE.P_INSERE_PRG_INSTALL_SCRIPT') then
exit;
UniStoredProc.ParamByName('p_SPIN_SCRIPT').DataType := ftString;
UniStoredProc.ParamByName('p_SPIN_SCRIPT').AsWideString := m.DataString;
UniStoredProc.ExecProc;
except
on E: Exception do
begin
Showmessage(E.Message);
end;
end;
end;
when executing the routine, the error below is returned:
ORA-01460: conversion not implemented or not resolvable.
I have tested it in several ways but I can't come up with a solution. Even doing the insertion routine as presented in the forum on another topic I get the same error.
Procedure Oracle.
PROCEDURE P_INSERE_PRG_INSTALL_SCRIPT(P_SPIN_SCRIPT IN PRG_INSTALL_SCRIPT_TESTE.SPIN_SCRIPT%TYPE)
IS
BEGIN
DELETE PRG_INSTALL_SCRIPT_TESTE;
INSERT INTO PRG_INSTALL_SCRIPT_TESTE
(SPIN_SCRIPT, DATA)
VALUES
(P_SPIN_SCRIPT, SYSDATE);
END;
Routine implemented in delphi
procedure TForm1.Button3Click(Sender: TObject);
var
M : TStringStream;
begin
M := TStringStream.Create;
M.LoadFromFile(edit4.Text);
try
if not PreparaStoredProc ('GONDOLA.AM_TESTE.P_INSERE_PRG_INSTALL_SCRIPT') then
exit;
UniStoredProc.ParamByName('p_SPIN_SCRIPT').DataType := ftString;
UniStoredProc.ParamByName('p_SPIN_SCRIPT').AsWideString := m.DataString;
UniStoredProc.ExecProc;
except
on E: Exception do
begin
Showmessage(E.Message);
end;
end;
end;
when executing the routine, the error below is returned:
ORA-01460: conversion not implemented or not resolvable.
I have tested it in several ways but I can't come up with a solution. Even doing the insertion routine as presented in the forum on another topic I get the same error.