Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempted to use catch-all token with token 7 of Undefined length [URGENT] (stopper) #231

Open
ibrahim-m0unir opened this issue May 12, 2024 · 1 comment

Comments

@ibrahim-m0unir
Copy link

Sybase IQ
select any type of string or varchar data throws exception even if it is of length 1 or more
image

Stack Trace :
at AdoNetCore.AseClient.Token.CatchAllToken.CalculateRemainingLength(Stream stream) in C:\Users\tiennguyen\source\repos\AdoNetCore.AseClient.0.19.2\src\AdoNetCore.AseClient\Token\CatchAllToken.cs:line 42
at AdoNetCore.AseClient.Token.CatchAllToken.Read(Stream stream, DbEnvironment env, IFormatToken previous) in C:\Users\tiennguyen\source\repos\AdoNetCore.AseClient.0.19.2\src\AdoNetCore.AseClient\Token\CatchAllToken.cs:line 26
at AdoNetCore.AseClient.Internal.TokenReader.d__0.MoveNext() in C:\Users\tiennguyen\source\repos\AdoNetCore.AseClient.0.19.2\src\AdoNetCore.AseClient\Internal\TokenReader.cs:line 37
at AdoNetCore.AseClient.Internal.InternalConnection.InternalExecuteQueryAsync(AseCommand command, AseTransaction transaction, TaskCompletionSource`1 readerSource, CommandBehavior behavior) in C:\Users\tiennguyen\source\repos\AdoNetCore.AseClient.0.19.2\src\AdoNetCore.AseClient\Internal\InternalConnection.cs:line 342
--- End of stack trace from previous location ---
at Dapper.SqlMapper.d__64.MoveNext() in /_/Dapper/SqlMapper.Async.cs:line 1166
at Program.<<

$>g__ConnectToIQ|0_0>d.MoveNext() in D:\Projcs\SybaseIQ\SybaseIQ\Program.cs:line 14
at Program.<<$>g__ConnectToIQ|0_0>d.MoveNext() in D:\Projcs\SybaseIQ\SybaseIQ\Program.cs:line 20
at Program.<$>d__0.MoveNext() in D:\Projcs\SybaseIQ\SybaseIQ\Program.cs:line 6
at Program.(String[] args)

@tangocoder
Copy link

I saw this error connecting to a Sybase IQ database, trying to read resultset of a query with string columns (I think you have the same issue)
I have created a fix: manage TDS_DATA_COLUMNSTATUS in ValueReader #235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants