Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-05

Database issues...

8 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi,

To make sure that my statements in a previous posting were correct, I tested the mysql and Interbase access components in the FCL.

In doing so, I discovered that a patch from Jesus Reyes, (which I applied), destroyed the MySQL and Interbase TDataset workings.

I have fixed the problem, and now everything works correctly. Everything is committed in CVS.

I have tested both Interbase (7.0) and MySQL (3.23) with the standard vanilla FPC units.

If you want to test yourself, please use the provided mtest or testib programs which you find in the fcl/db/mysql or fcl/db/interbase directories, respectively.

Michael.

Reply by email

Unknown author
to Jesus Reyes: Hi Michael. I'm pretty sure that you didn't apply my latest patch that fixed this issue…
Show quoted text 16 lines
Hi Michael. > To make sure that my statements in a previous posting were correct, > I tested > the mysql and Interbase access components in the FCL. > > In doing so, I discovered that a patch from Jesus Reyes, (which I > applied), > destroyed the MySQL and Interbase TDataset workings. > I'm pretty sure that you didn't apply my latest patch that fixed this issue and several others in TDataSource even in dbf.pas, for reference: http://www.lazarus.freepascal.org/archives/msg02247.html, Mattias updated the grids.pas part (http://www.lazarus.freepascal.org/archives/msg02254.html)

This is quite possible. I only did 1 patch, your initial one. I tried to download the file now, but I get an error from the webserver.

Can you check out the latest cvs sources, and send me a diff of whatever I may have missed ?

Show quoted text 10 lines
In a new message Siegfried Goericke reported that he successful applied the patches but he had problems with fpc1.1 and interbase (http://www.lazarus.freepascal.org/archives/msg02416.html) and I discovered the problem with IsCursorOp�n but its strange I cant find the message where I reply what I proposed: Function IsCursorOpen: Boolean; begin Result:= FDatabasenil End;

This would be a wrong solution, and is only part of the problem. In each case, I have addressed the problem in Interbase. The IsCursorOpen problem didn't exist for MySQL.

In future, please send patches for db.pp and FCL related things directly to me. I don't have time to check all Lazarus messages (I do my best, though) so it is better to send patches straight to me.

Don't misunderstand my message wrong, I don't want to accuse you of anything. I simply should have checked your patches more thoroughly before applying them. But on initial inspection, they looked OK... Anyway, feel free to look at the changes I made and send diffs for things you think are still wrong.

Michael.

Reply by email

Jesus Reyes
to Unknown author: To make sure that my statements in a previous posting were correct, I tested the mysql…

Hi Michael.

Show quoted text 8 lines
To make sure that my statements in a previous posting were correct, I tested the mysql and Interbase access components in the FCL. In doing so, I discovered that a patch from Jesus Reyes, (which I applied), destroyed the MySQL and Interbase TDataset workings.

I'm pretty sure that you didn't apply my latest patch that fixed this issue and several others in TDataSource even in dbf.pas, for reference: http://www.lazarus.freepascal.org/archives/msg02247.html, Mattias updated the grids.pas part
(http://www.lazarus.freepascal.org/archives/msg02254.html)

In a new message Siegfried Goericke reported that he successful applied the patches but he had problems with fpc1.1 and interbase (http://www.lazarus.freepascal.org/archives/msg02416.html) and I discovered the problem with IsCursorOp�n but its strange I cant find the message where I reply what I proposed:

Function IsCursorOpen: Boolean;
begin
 Result:= FDatabasenil
End;

But I stated that I wasn't sure it was ok, in that time I think, things got mixed:

Regards.

Jesus Reyes A.

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email

harry
to Unknown author: There is no fixbranch in the FCL or in the packages. There is only 1 branch. The…

Hi @ all,

i�m installing lazarus source and binary with FPC 1.1 on Suse 8.2

make clean all shows the following linking errors after compile

Linking ./lazarus
./lcl/units/gtk/gtkint.o(.text+0x4b5a): In function `LOADFILE': gtkobject.inc:1403: undefined reference to
`gdk_pixbuf_render_pixmap_and_mask'
./lcl/units/gtk/gtkint.o(.text+0x4feb): In function `LOADDATA': gtkobject.inc:1501: undefined reference to
`gdk_pixbuf_render_pixmap_and_mask'
./lcl/units/gtk/gtkint.o(.text+0x125c2): In function `DATASOURCEINITIALIZE':
gtkwinapi.inc:1094: undefined reference to
`gdk_pixbuf_get_from_drawable'
./lcl/units/gtk/gtkint.o(.text+0x12641):gtkwinapi.inc:1081: undefined reference to `gdk_pixbuf_get_from_drawable'
./lcl/units/gtk/gtkint.o(.text+0x1d4d3): In function `SCALEBUFFER': gtkwinapi.inc:7389: undefined reference to
`gdk_pixbuf_get_from_drawable'
./lcl/units/gtk/gtkint.o(.text+0x1d59a):gtkwinapi.inc:7401: undefined reference to `gdk_pixbuf_render_pixmap_and_mask'
lazarus.pp(88,1) Error: Error while linking
Closing script ./ppas.sh
make[1]: *** [lazarus] Error 1
make[1]: Leaving directory `/usr/share/lazarus'
make: *** [ide] Error 2
hr1linux:/usr/share/lazarus #

Reply by email

harry
to Unknown author: There is no fixbranch in the FCL or in the packages. There is only 1 branch. The…

Ok if have fixed it

i replace the $target and $version with the correct path in fpc.cfg and all works fine

greets harry

harry wrote 39 lines
Hi @ all, i�m installing lazarus source and binary with FPC 1.1 on Suse 8.2 make clean all shows the following linking errors after compile Linking ./lazarus ./lcl/units/gtk/gtkint.o(.text+0x4b5a): In function `LOADFILE': gtkobject.inc:1403: undefined reference to `gdk_pixbuf_render_pixmap_and_mask' ./lcl/units/gtk/gtkint.o(.text+0x4feb): In function `LOADDATA': gtkobject.inc:1501: undefined reference to `gdk_pixbuf_render_pixmap_and_mask' ./lcl/units/gtk/gtkint.o(.text+0x125c2): In function `DATASOURCEINITIALIZE': gtkwinapi.inc:1094: undefined reference to `gdk_pixbuf_get_from_drawable' ./lcl/units/gtk/gtkint.o(.text+0x12641):gtkwinapi.inc:1081: undefined reference to `gdk_pixbuf_get_from_drawable' ./lcl/units/gtk/gtkint.o(.text+0x1d4d3): In function `SCALEBUFFER': gtkwinapi.inc:7389: undefined reference to `gdk_pixbuf_get_from_drawable' ./lcl/units/gtk/gtkint.o(.text+0x1d59a):gtkwinapi.inc:7401: undefined reference to `gdk_pixbuf_render_pixmap_and_mask' lazarus.pp(88,1) Error: Error while linking Closing script ./ppas.sh make[1]: *** [lazarus] Error 1 make[1]: Leaving directory `/usr/share/lazarus' make: *** [ide] Error 2 hr1linux:/usr/share/lazarus # _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Manuel Pérez López
to Jesus Reyes: Hi Michael. I'm pretty sure that you didn't apply my latest patch that fixed this issue…

One question...

What declaration I must write in 'uses' to be able to compile 'messagebox'? Perhaps it's needed that Lazarus automaticaly write declaration in 'uses' and this will be based from same 'words reserved'.

I hope you understand me (my English is veryyyyy bad). Sorry!

Thanks

Manuel P�rez L�pez

-----------------------------------

Reply by email

Jesus Reyes
to Unknown author: To make sure that my statements in a previous posting were correct, I tested the mysql…

Oh BTW it seems that the fixes are not in the Fixed branch (FIXES_1_0_0).

Show quoted text 6 lines
If you want to test yourself, please use the provided mtest or testib programs which you find in the fcl/db/mysql or fcl/db/interbase directories, respectively.

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email