<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/directsql/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/directsql/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/directsql/bugs/</id><updated>2007-08-04T14:20:59Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Socket connection under Unix with FreePascal not working</title><link href="https://sourceforge.net/p/directsql/bugs/10/" rel="alternate"/><published>2007-08-04T14:20:59Z</published><updated>2007-08-04T14:20:59Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net1d252ae475da0c62be3110d51c2a633ad34bb541</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;First of all I was surprised that Direct SQL compiled flawlessly in FreePascal! Then I noticed I couldn't connect to my server and traced the problem back to some obviously unfinished line of code.&lt;/p&gt;
&lt;p&gt;Problem 1:&lt;br /&gt;
The problem you have is that 'errno' is defined in the ISO standard as an assignable l-value and can be either a MACRO or a variable. This is a bad starting point for any Pascal Linker.&lt;/p&gt;
&lt;p&gt;Solution 1:&lt;br /&gt;
Looking through the web I found that the GNU implementation of the ISO standard exports the function '__errno_location()' which returns the address of that int. So I deleted your global variable 'errno: Integer' and added "function errno: PInteger; cdecl; external 'libc.so.6' name '__errno_location';". In addition all the references to "errno" have to be changed to "errno^".&lt;/p&gt;
&lt;p&gt;Problem 2:&lt;br /&gt;
connect still didn't seem to work and if errno^ returned reliable values it was due to an 'invalid parameter'. &lt;/p&gt;
&lt;p&gt;Solution 2:&lt;br /&gt;
As the socket wasn't -1 and the address length was 16 it had to be the address itself. Looking at the declaration of connect I got a bit nervous about the "const" keyword cause it can be used by the compiler to transfer values in registers while we explicitly need a pointer here. So I changed this to "var" and it seems to do the trick.&lt;/p&gt;
&lt;p&gt;Thank you for this great library and making it as compatible as it can be. I'm looking forward to the next release.&lt;/p&gt;
&lt;p&gt;Marco&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MySQL 4.1.7 Bugs</title><link href="https://sourceforge.net/p/directsql/bugs/9/" rel="alternate"/><published>2004-12-01T19:47:25Z</published><updated>2004-12-01T19:47:25Z</updated><author><name>GreenPirate</name><uri>https://sourceforge.net/u/greenpirate/</uri></author><id>https://sourceforge.netfd0cad3736a6928760ac7b1f75e2aa4deeadc210</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;DirectSQL causes lots of problems when trying to &lt;br /&gt;
connect to a stable MySQL 4.1.7 server.  It seems it &lt;br /&gt;
does not obtain the field- and tablenames correctly from &lt;br /&gt;
the MySQL server.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Integer Overflow</title><link href="https://sourceforge.net/p/directsql/bugs/8/" rel="alternate"/><published>2003-12-09T13:56:29Z</published><updated>2003-12-09T13:56:29Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netcdc252c076a97a8e9ed1c0a7f80cd14a87137229</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I get an Integer Overflow Error in the line&lt;br /&gt;
nr2:=nr2+((nr2 shl 8) xor nr);&lt;br /&gt;
in function hashPassword&lt;br /&gt;
in Module uMysqlClient.pas.&lt;br /&gt;
The Error happens not always but often.&lt;/p&gt;
&lt;p&gt;What can I do ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Possible Unneeded Data Fetch on Close ??</title><link href="https://sourceforge.net/p/directsql/bugs/7/" rel="alternate"/><published>2003-07-18T10:52:13Z</published><updated>2003-07-18T10:52:13Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net078d438a96dcdbab329e80536822dd0441ac45d7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think that on this procedure&lt;/p&gt;
&lt;p&gt;destructor TMysqlResult.destroy;&lt;/p&gt;
&lt;p&gt;unit uMysqlClient.pas &lt;/p&gt;
&lt;p&gt;destructor TMysqlResult.destroy;&lt;br /&gt;
....&lt;br /&gt;
while true do&lt;br /&gt;
begin //clear the buffer&lt;br /&gt;
pkt_len:=fhandle.fnet.net_safe_read;&lt;br /&gt;
if (pkt_len = packet_error) then  break;&lt;br /&gt;
if (pkt_len = 1) and (pchar(fhandle.fnet.read_pos)[0] &lt;br /&gt;
= #254) then break;&lt;br /&gt;
end;&lt;br /&gt;
....&lt;/p&gt;
&lt;p&gt;this loop is not needed and it causes the component to &lt;br /&gt;
fetch ALL records, while the only thing we really want to &lt;br /&gt;
do is close the dataset.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Connection Duplicates</title><link href="https://sourceforge.net/p/directsql/bugs/6/" rel="alternate"/><published>2003-04-09T00:27:43Z</published><updated>2003-04-09T00:27:43Z</updated><author><name>E-Razor</name><uri>https://sourceforge.net/u/xok/</uri></author><id>https://sourceforge.net510b35ad90649065b4ffabdc806dc085645ae088</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I don't know if it is a bug or not.&lt;/p&gt;
&lt;p&gt;When I connect to the database (mysqlproc demo &lt;br /&gt;
program) when the connection is successfull if I press &lt;br /&gt;
the button multiple times, it will create multiple threads &lt;br /&gt;
without disconnect the previous one.&lt;/p&gt;
&lt;p&gt;Another question, is it possible to help on the project ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>possible memory leak</title><link href="https://sourceforge.net/p/directsql/bugs/5/" rel="alternate"/><published>2003-02-03T17:04:38Z</published><updated>2003-02-03T17:04:38Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net4604d95a51ce4f3a588475ab4866548eee71f56f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;in net_real_write in the file uMysqlNet.pas, strDispose is &lt;br /&gt;
not always called on pac, which causes a memory leak.&lt;/p&gt;
&lt;p&gt;I worked around it by adding a strdispose(pac); to the &lt;br /&gt;
end of the procedure&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>query error</title><link href="https://sourceforge.net/p/directsql/bugs/4/" rel="alternate"/><published>2002-08-28T13:17:00Z</published><updated>2002-08-28T13:17:00Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net4e03af8313cfc0d01e67110da86861a182fad398</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Very strange behavior.&lt;br /&gt;
I have long query (UPDATE CATDATA SET MYBLOB = &lt;br /&gt;
0x176128f123f3f12f123ff12312.....   WHERE ID=1 )&lt;/p&gt;
&lt;p&gt;When I post it to remote server it gives error if query &lt;br /&gt;
sent was &amp;amp;gt; 16k. With libmysql everything ok.&lt;/p&gt;
&lt;p&gt;Anton&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>mysql_query hangs</title><link href="https://sourceforge.net/p/directsql/bugs/3/" rel="alternate"/><published>2001-09-19T08:04:51Z</published><updated>2001-09-19T08:04:51Z</updated><author><name>Cristian Nicola</name><uri>https://sourceforge.net/u/whity/</uri></author><id>https://sourceforge.neta4980f67ab847ec92f61c3fbbe93cc4117f23808</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Apparently a query like:&lt;br /&gt;
'update table column=&amp;amp;quot;1&amp;amp;quot; where id=5' does hang .. need &lt;br /&gt;
to check.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Send file to server + compression = AV</title><link href="https://sourceforge.net/p/directsql/bugs/2/" rel="alternate"/><published>2001-09-19T08:03:55Z</published><updated>2001-09-19T08:03:55Z</updated><author><name>Cristian Nicola</name><uri>https://sourceforge.net/u/whity/</uri></author><id>https://sourceforge.neta73e2d6b7eeb1e56303dbd6bb24c7677c8d96b80</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Need to find a fix in this case&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Send file to server has problems</title><link href="https://sourceforge.net/p/directsql/bugs/1/" rel="alternate"/><published>2001-09-19T08:03:24Z</published><updated>2001-09-19T08:03:24Z</updated><author><name>Cristian Nicola</name><uri>https://sourceforge.net/u/whity/</uri></author><id>https://sourceforge.neta24e5fe6eea1cd1767addaf993e9f59575daa509</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I will check it today and definatelly fix it.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>