Board index » delphi » Does Oracle stored procedures truncates strings (255 chars) ?
Sergio Franca
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Does Oracle stored procedures truncates strings (255 chars) ?
Hi !
I use : I have a "test" stored procedure (inside a package) with one input When I run it with SQL*Plus it goes ok. I send a string with 500 When I run it with Delphi, I get an error : Any clue ? Thanks in advance Bye Fran?a P.S. : There go both the procedure and the delphi code : In Oracle : PROCEDURE RETORNA_STRING( TIPO_OBJETO IN VARCHAR2, TEXTO_SELECT2 OUT In Delphi : procedure TForm1.FormShow(Sender: TObject); SetLength(String01, 500); DataModule2.StoredProc1.ParamByName('TIPO_OBJETO').AsString := String01; String02 := Application.MessageBox( Pchar(String02), 'Ttulo', MB_OK ); end; |