Explorar el Código

+ Fix a leak of connections

git-svn-id: trunk@3149 -
joost hace 19 años
padre
commit
8b67fbcba4
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      fcl/db/sqldb/mysql/mysqlconn.inc

+ 5 - 1
fcl/db/sqldb/mysql/mysqlconn.inc

@@ -260,7 +260,11 @@ end;
 
 
 procedure TConnectionName.UnPrepareStatement(cursor: TSQLCursor);
 procedure TConnectionName.UnPrepareStatement(cursor: TSQLCursor);
 begin
 begin
-  // not necessary
+  With Cursor as TCursorName do
+    begin
+    mysql_close(FQMySQL);
+    FQMysql := nil;
+    end;
 end;
 end;
 
 
 procedure TConnectionName.FreeFldBuffers(cursor: TSQLCursor);
 procedure TConnectionName.FreeFldBuffers(cursor: TSQLCursor);