Recent

Author Topic: abstract method called when using TSQLQuery  (Read 9595 times)

belajardelphi

  • Guest
abstract method called when using TSQLQuery
« on: February 07, 2006, 12:35:11 am »
I'm using Suse 9.3 I think i can install Lazarus and fpc (no error)

but when running demo try...(using component sqldb) error occured..abstract method called..

if  i make active=true on TSQlQuery error occured too: Abstract Method called

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: abstract method called when using TSQLQuery
« Reply #1 on: February 07, 2006, 02:51:35 pm »
What demo are you running? Which version of Lazarus / FPC did you install?
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

Anonymous

  • Guest
RE: abstract method called when using TSQLQuery
« Reply #2 on: February 10, 2006, 07:43:36 am »
thanks for reply

I use
fpc-2.0.1-050923.i386.rpm
fpc-src-2.0.1-050923.i386.rpm
lazarus-0.9.10-0.i386.rpm
I'm running demo mysql_demo_20050408.tar.gz(from lazarus wiki)
I install mysql 4.0.X.X (and mysql library and devel, i remove mysql 4.1.x.x first from suse 9.3) from suse 9.0 because sql db not work with mysql4.1.x.x,
And again i install fpc and lazarus sucsessfully (no error) on my Suse 9.3.
It work fine when I use free passcal to connect to mysql 4.0 and do query....
Thanks!

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: abstract method called when using TSQLQuery
« Reply #3 on: February 10, 2006, 05:37:50 pm »
Could you try it with lazarus-0.9.12? I wrote that page and the example project and did not encounter any problems. However the documentation is maybe a bit outdated (so soon!?!? ;) ), but the latest sqldb-package contains connection components for MySQL 4.0, 4.1 and 5.0.

Note to self: Update page and create new demo project. :)
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

Anonymous

  • Guest
RE: abstract method called when using TSQLQuery
« Reply #4 on: February 11, 2006, 12:13:28 am »
Ok , I will try I'm downloading lazarus-0.9.12 right now...I will post the result

Anonymous

  • Guest
RE: abstract method called when using TSQLQuery
« Reply #5 on: February 14, 2006, 06:55:11 am »
Im already installed fpc 2.0.2 and lazarus 0.9.12 sucsessfully. But there is error when I log in the demo program (using sqldb) something like 'access violation' or "connection failed"

I can't change active property from SQLTransaction to true, everytaime i change to true i'ts otomatically change to false ( no message error).

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: abstract method called when using TSQLQuery
« Reply #6 on: February 14, 2006, 09:57:56 am »
The access violation occurs when you open a TSQLQuery and there is no connection with the database.
When you can not set the SQLTransaction to active, the connection can not be made. Most propably due to wrong credentials. (userid, password)
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

 

TinyPortal © 2005-2018