Print Thread
Page 4 of 5 1 2 3 4 5
Re: ora-01480
Marco Kalter #41251 06/29/11 09:26 AM
Joined: Feb 2005
Posts: 49
A
Member
Offline
Member
A
Joined: Feb 2005
Posts: 49
Thanks, unfortunatly I haven't source code option, but it's enough to know the month when the fixed will be available. You can understand that we have to tell something to our customers...
I can wait but I pray you to tell me a date.
Bye
Alberto

Re: ora-01480
Alberto Pilat #41493 07/13/11 08:37 AM
Joined: Feb 2005
Posts: 49
A
Member
Offline
Member
A
Joined: Feb 2005
Posts: 49
Marco, what I have to do to enable the source code option? Can you post me the correction as you've said?

Re: ora-01480
Alberto Pilat #42898 12/09/11 01:29 AM
Joined: Jul 2011
Posts: 5
C
Member
Offline
Member
C
Joined: Jul 2011
Posts: 5
Is this resolved yet? Need a solution if possible. Will start looking for a work around in the meantime.

Re: ora-01480
Cory Jay #42904 12/09/11 10:09 AM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
Version 4.1.3 will be available shortly.


Marco Kalter
Allround Automations
Re: ora-01480
Marco Kalter #43581 03/14/12 09:43 PM
Joined: Jul 2011
Posts: 5
C
Member
Offline
Member
C
Joined: Jul 2011
Posts: 5
It appears to me that 4.1.3 is still not available for XE (I did a new download from the registered page and the unpacked files are names *412.*. Is this issue resolved in the XE2 versions of the components? Is there any other way that I can get around this limitation?

Re: ora-01480
Arvid #43734 04/11/12 09:25 AM
Joined: Jul 2002
Posts: 71
R
Member
OP Offline
Member
R
Joined: Jul 2002
Posts: 71
Hi Marco,

we bought the last doa version and i expected this issue would be solved. We are using delphi7 and doa version 4.1.1 (Highest version available for delphi 7) We still get the trailing null error....

any suggestions?

Regards Ruud

Last edited by Ruudbern; 04/12/12 08:18 AM.
Re: ora-01480
Ruudbern #44006 05/30/12 11:30 AM
Joined: May 2012
Posts: 1
H
Member
Offline
Member
H
Joined: May 2012
Posts: 1
Hi,

We have Delphi XE2 and DOA 4.1.3, and still getting this
"ora-01480" error. Is there a fix ready soon, or does anyone have another workaround? We do not have the source-code.

Regards,
Heimsater

Re: ora-01480
Heimsater #44117 06/20/12 01:31 PM
Joined: Jun 2012
Posts: 1
S
Member
Offline
Member
S
Joined: Jun 2012
Posts: 1
Hi.
I wonder why a fix is still not availabale when this bug is known for over a year now. It is not that difficult to fix it. Look into TOracleQuery.BindVariables procedure located in in Oracle.pas We need this piece of code:
// Determine the maximum number of characters for a string or char variable
lBufSize := bufsize;
if (lBufType in [otString, otChar, otVarchar2]) and (BufType <> otPLSQLString) then
begin
if CharSetForm = ocfNational then
begin
if (lBufSize > Session.MaxVarcharN + 1) then lBufSize := Session.MaxVarcharN + 1;
end else
if (lBufSize > Session.MaxVarchar + 1) then lBufSize := Session.MaxVarchar + 1;
end;

It calculates buffer size of the string bind variable. Problem is, calculation is done in CHARACTERS when it needs to be in BYTES. Here is fixed version:
// Determine the maximum number of characters for a string or char variable
lBufSize := bufsize;
if (lBufType in [otString, otChar, otVarchar2]) and (BufType <> otPLSQLString) then
begin
//Buffer size must be calculated in bytes, not in characters!
if CharSetForm = ocfNational then
begin
if (lBufSize > Session.MaxVarcharN * Session.CurrentBytesPerNCharacter + 1) then
lBufSize := Session.MaxVarcharN * Session.CurrentBytesPerNCharacter + 1;
end else
if (lBufSize > Session.MaxVarchar * Session.CurrentBytesPerCharacter + 1) then
lBufSize := Session.MaxVarchar * Session.CurrentBytesPerCharacter + 1;
end;

Just copy+paste it instead of the old block, roll out a new version of DOA and everybody will be happy.

Re: ora-01480
snowmann #46040 02/12/13 12:01 PM
Joined: Feb 2005
Posts: 49
A
Member
Offline
Member
A
Joined: Feb 2005
Posts: 49
Hello,
what about this bug? I receive ora-01480 when I try with DXE3 + DOA 4.1.3.3 against a Oracle 9.2.
I use bind string variables, while if I use subst variables or build the entire statement it works.
Also, if I execute the same statement in PL/SQL using same string variables it works.
Thanks.

Re: ora-01480
Ruudbern #46122 02/15/13 04:22 PM
Joined: Feb 2005
Posts: 49
A
Member
Offline
Member
A
Joined: Feb 2005
Posts: 49
Sorry, but it was my mistake...I see now that I was using oci7 compatibility!
Without its, it works.

Page 4 of 5 1 2 3 4 5

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.036s Queries: 14 (0.013s) Memory: 2.5617 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-05-05 22:38:09 UTC
Valid HTML 5 and Valid CSS