Recent

Author Topic: [Solved] TMySQL55Connection: Where is  (Read 6872 times)

halmariane

  • New Member
  • *
  • Posts: 30
[Solved] TMySQL55Connection: Where is
« on: March 15, 2013, 06:17:28 am »
Hi:

I'm using FPC 2.7.1 of CodeTyphon distribution. Where is the TMySQL55Connection component??

I thing that is the right year (2013) for already using MySQL 5.5. :)

Ok. I have modified the file registersqldb.pas to activate the flag HASMYSQL55CONNECTION (line 33). When i compile the IDE then displays the next error:

Quote
registersqldb.pas(72,3) Fatal: Can not find unit mysql55conn used by registersqldb.

This unit already exists there. Can somebody help me to activate TMySQL55Connection component?

Regards
« Last Edit: March 16, 2013, 11:59:55 am by halmariane »

JanRoza

  • Hero Member
  • *****
  • Posts: 742
    • http://www.silentwings.nl
Re: TMySQL55Connection: Where is
« Reply #1 on: March 15, 2013, 01:27:49 pm »
I use Lazarus 1.07 and the TMySQL55Connection component is already in the SQLDB component pallet. Is CodeTyphon lagging behind on this?
OS: Windows 11 / Linux Mint 22.3
       Lazarus 4.6 RC FPC 3.2.2
       CodeTyphon 8.90 FPC 3.3.1

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1946
Re: TMySQL55Connection: Where is
« Reply #2 on: March 15, 2013, 01:49:20 pm »
It is in trunk
I thing that is the right year (2013) for already using MySQL 5.5. :)

It is in trunk since May 2012 and certainly works with FPC 2.7.1
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/sqldb/registersqldb.pas?root=lazarus&r1=37038&r2=37212
« Last Edit: March 15, 2013, 01:51:28 pm by theo »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12776
  • FPC developer.
Re: TMySQL55Connection: Where is
« Reply #3 on: March 15, 2013, 02:21:29 pm »
mysql55 support is already in FPC 2.7.1 since early 2012. So it must be the lazarus version that CodeTyphon is based on that is outdated.

halmariane

  • New Member
  • *
  • Posts: 30
Re: TMySQL55Connection: Where is
« Reply #4 on: March 15, 2013, 03:21:58 pm »
mysql55 support is already in FPC 2.7.1 since early 2012. So it must be the lazarus version that CodeTyphon is based on that is outdated.

Thanks to everybody for reponses.

Really is for the version of Lazarus??. About box displays the next:

Lazarus 1.1
FPC 2.7.1
SVN 40461

In the registersqldb.pas file there is the next code:

Code: [Select]
{$IF FPC_FULLVERSION>= 20601}
{.$DEFINE HASMYSQL55CONNECTION}
{$ENDIF}

So if I "uncoment" removing the point and compiling IDE :

registersqldb.pas(72,3) Fatal: Can not find unit mysql55conn used by registersqldb.. All units exist.

Which will be the cause??

Will be the commented flag by unsupported MySQL55 in this version of Lazarus??
« Last Edit: March 15, 2013, 03:25:30 pm by halmariane »

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TMySQL55Connection: Where is
« Reply #5 on: March 15, 2013, 03:30:02 pm »
Sorry, but in normal Lazarus trunk this is:
Code: [Select]
{$IF FPC_FULLVERSION>= 20601}
{$DEFINE HASMYSQL55CONNECTION}

which works for me with Lazarus trunk and the other posters here.

I'd therefore suggest you ask the CodeTyphon people what they changed...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

halmariane

  • New Member
  • *
  • Posts: 30
Re: TMySQL55Connection: Where is
« Reply #6 on: March 15, 2013, 08:24:02 pm »

which works for me with Lazarus trunk and the other posters here.

I'd therefore suggest you ask the CodeTyphon people what they changed...

Yes BigChimp

You're right. I'm investigating about this issue. I have posted the issue in the CodeTyphon forum without reply yet.

Thank you, thanks to all Lazarus-LifeGuards.
« Last Edit: March 15, 2013, 08:26:34 pm by halmariane »

halmariane

  • New Member
  • *
  • Posts: 30
Re: TMySQL55Connection: Where is
« Reply #7 on: March 15, 2013, 09:05:19 pm »
Hi:

With FPC 2.6.2 and Lazarus 1.0.6 the component (TMySQL55Connection) is there. It's true. ;)

With CodeTyphon, fpmake.pp of fcl.db folder seems different. I don't know if what i am doing is "of interest" in this forum. I will investigate more.

Regards

Sternas Stefanos

  • Full Member
  • ***
  • Posts: 170
  • Ex Pilot, M.Sc, Ph.D
    • http://www.pilotlogic.com
CodeTyphon Architect and Programmer

 

TinyPortal © 2005-2018