<div dir="auto"><div><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Michael Roland via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Di., 1. Apr. 2025, 02:24:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="m_6035689361925351573WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Is the wrong version of the db.pas in fixes_3_2 branch?</span></p></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">No. </div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word"><div class="m_6035689361925351573WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">The current version of db.pas in fixes_3_2 seems to be from the 3.3.1 branch instead of the 3.2.3 branch.</span></p></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">There have been changes from 3.3.1 that have been merged to 3.2.3.</div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word"><div class="m_6035689361925351573WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">The 3.3.1 db.pas adds a new enum value ftSingle to TFieldType.</span></p></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Correct. </div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word"><div class="m_6035689361925351573WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">This causes the compilation of ZeosDb 8.0 ZAbstractRODataset.pas to fail with the error<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Error: Expected another 1 array elements.</span></p></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Then Zeos code will have to be adjusted. </div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word"><div class="m_6035689361925351573WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">The file zeosdbo-8.0.0-stable/src/</span><span style="font-size:11pt">ZeosLazarus.inc defines WITH_FTSINGLE as</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">{$IF FPC_FULLVERSION >= 30300}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">{$DEFINE WITH_FTSINGLE}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">{$DEFINE WITH_FTSHORTINT}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">{$IFEND}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">So ZeosDb is doing the correct thing.</span></p></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">No, it's not. For ftSingle it needs to be adjusted. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word"><div class="m_6035689361925351573WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">The current db.pas file seems like a breaking change to make in the fixes_3_2 branch. Was the current db.pas file added to the fixes_3_2 branch for a reason, or was it added unintenionally?</span></p></div></div></blockquote></div></div><div dir="auto">Things like these can and do happen especially considering how old 3.2.2 is. </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word"><div class="m_6035689361925351573WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Are any other files from the 3.3.1 branch in the fixes_3_2 branch?</span></p></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">There are no "files from the 3.3.1 branch" that were moved over (well, expect maybe some new ones), just selected changes that were merged over. This is simply how things work and third party software has to adjust their checks. That's how it has always been.</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>