Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why are VARCHAR strings sometimes padded?

padded strings varchar
0
10 Posted

Why are VARCHAR strings sometimes padded?

0
10

Till v.6.5 InterBase sent VARCHAR columns padded to the full length with spaces (0x20) similar to CHAR. In 6.5 this was changed by Borland so that VARCHARs are no longer padded, as expected. IB 6.0 and FB 1.0 pads VARCHARs too. However, if FB 1.0 is accessed via JayBird, it does NOT pad VARCHARs and sends them correctly. From one of the posts in the Firebird devel list this issue seems to appear when using the gds32.dll under Windows but not with the INET protocol.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.