GetSqlError return only 254 chars

Discussion forum about all things SqlBase or SqlTalk
Sokolov_Victor

GetSqlError return only 254 chars

Post by Sokolov_Victor » 11 Nov 2011, 13:50

Hello,

GetSqlError return only 254 chars. It is possible to increase this value at least in 2 times? GetSqlError uses unicodе, and the error in Russian doesn't fit, instead of 254 letters becomes an error from 127 letters.

Example
TestSqlGetError.rar
Thanks!
Victor
You do not have the required permissions to view the files attached to this post.

FRBhote
India
Posts: 2221
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

Re: GetSqlError return only 254 chars

Post by FRBhote » 12 Nov 2011, 06:14

1000 would be a much nicer figure - ODBC errors give about 20 chars only after the standard error message.

User avatar
markus.essmayr
Austria
Posts: 892
Joined: 06 Mar 2017, 06:07
Location: Austria

Re: GetSqlError return only 254 chars

Post by markus.essmayr » 14 Nov 2011, 08:39

Hello,

I think that in times of 32 and 64 bit processing, there shouldn't be any limitations like this!
That means: The string should be exactly as long as the error message is.
And if it's 32k, the string should also be 32k.

Max
Markus Eßmayr
teamdeveloper@t-mx.com

Return to “SqlBase General Discussion”

Who is online

Users browsing this forum: [Ccbot] and 0 guests