"Unsupported length"
"Unsupported length"
A customer is reporting the error in the subject line with IBDac.
I noticed this text being available in ibdac120.bpl
What could cause this?
With regards,
Martijn Tonies
Upscene Productions
I noticed this text being available in ibdac120.bpl
What could cause this?
With regards,
Martijn Tonies
Upscene Productions
-
AndreyZ
-
AndreyZ
Unfortunately I cannot reproduce the problem. Please try executing the following code:
Is the execution successful?
Code: Select all
IBCConnection.Connect;
ShowMessage(IntToStr(IBCConnection.DatabaseInfo.Allocation) +
IntToStr(IBCConnection.DatabaseInfo.BaseLevel) +
IntToStr(IBCConnection.DatabaseInfo.NoReserve) +
IntToStr(IBCConnection.DatabaseInfo.ODSMinorVersion) +
IntToStr(IBCConnection.DatabaseInfo.ODSMajorVersion) +
IntToStr(IBCConnection.DatabaseInfo.PageSize) +
IntToStr(IBCConnection.DatabaseInfo.CurrentMemory) +
IntToStr(IBCConnection.DatabaseInfo.ForcedWrites) +
IntToStr(IBCConnection.DatabaseInfo.MaxMemory) +
IntToStr(IBCConnection.DatabaseInfo.NumBuffers) +
IntToStr(IBCConnection.DatabaseInfo.SweepInterval) +
IntToStr(IBCConnection.DatabaseInfo.Fetches) +
IntToStr(IBCConnection.DatabaseInfo.Marks) +
IntToStr(IBCConnection.DatabaseInfo.Reads) +
IntToStr(IBCConnection.DatabaseInfo.Writes) +
IntToStr(IBCConnection.DatabaseInfo.DBSQLDialect) +
IntToStr(IBCConnection.DatabaseInfo.LogFile) +
IntToStr(IBCConnection.DatabaseInfo.CurLogPartitionOffset) +
IntToStr(IBCConnection.DatabaseInfo.NumWALBuffers) +
IntToStr(IBCConnection.DatabaseInfo.WALBufferSize) +
IntToStr(IBCConnection.DatabaseInfo.WALCheckpointLength) +
IntToStr(IBCConnection.DatabaseInfo.WALPrvCheckpointPartOffset) +
IntToStr(IBCConnection.DatabaseInfo.WALGroupCommitWaitUSecs) +
IntToStr(IBCConnection.DatabaseInfo.WALNumIO) +
IntToStr(IBCConnection.DatabaseInfo.WALAverageIOSize) +
IntToStr(IBCConnection.DatabaseInfo.WALNumCommits) +
IntToStr(IBCConnection.DatabaseInfo.WALAverageGroupCommitSize) +
IntToStr(IBCConnection.DatabaseInfo.AttachmentID) +
IntToStr(IBCConnection.DatabaseInfo.InfoAttCharset) +
IntToStr(IBCConnection.DatabaseInfo.InfoDbClass) +
IntToStr(IBCConnection.DatabaseInfo.InfoOldestTransaction) +
IntToStr(IBCConnection.DatabaseInfo.InfoOldestActive) +
IntToStr(IBCConnection.DatabaseInfo.InfoOldestSnapshot) +
IntToStr(IBCConnection.DatabaseInfo.InfoNextTransaction) +
IntToStr(IBCConnection.DatabaseInfo.InfoDbProvider) +
BoolToStr(IBCConnection.DatabaseInfo.ReadOnly) +
BoolToStr(IBCConnection.DatabaseInfo.IsEncrypted) +
BoolToStr(IBCConnection.DatabaseInfo.IsEUAActive));-
AndreyZ
On the restored database, yes, these work fine.AndreyZ wrote:This problem can be caused by many reasons. That's why I gave you the list of all functions that can cause this error. We are looking forward to hearing from you.
In my application, the queries fail at the customers site.
In my application, I'm using some of the functions listed to gather statement statistics.
Here's what he wrote to me:
Recapping – All activity on the same 2.5 Firebird Server
FB_ITShared + 2 Other Databases returned Unsupported length using DBW4 on All queries even ones just querying system tables
All Other databases OK
DOS Copy of FB_ITShared made following FB Server shut down -> FB_ITSharedBad
FB Server restarted
FB_ITShared Restored (overwritten) from Backup
Queries on FB_ITShared then returned results as expected J
The following day FB_ITShared reverted to returning Unsupported length for all queries.
FB_ITSharedBad returns results as expected – this for me is bizarre
-
AndreyZ
I just got a message from my customer that you were able to reproduce the issue, it had to do with Firebird 2.5 INT64 usage for statistics.AndreyZ wrote:You can forward the e-mail from your customer to andreyz*devart*com.
I'm a bit surprised here, as I notified you in March 2010 about this!
See:
http://www.devart.com/forums/viewtopic. ... ght=#54818
-
AndreyZ
-
AndreyZ