Sign in Join

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

Mailing lists / lazarus / 2009-11

newbie trouble /w zeos

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Chris Jennings

Hi All

I know this is not a Zeos forum but I am new to Lazarus and still trying to decide whether it can meet the needs of an upcomming major open source initiative.

I am trying some simple db connectivity. Everything works under XP but I have a failure using the same code under Fedora11.

My SQL for the Zsql component is "select * from extras.countries. When I go to activate the component I get the error "Unknow MySQL data type!"

This is the databse/table structure

CREATE TABLE extras.countries (
id int(11) NOT NULL auto_increment,
country varchar(255) NOT NULL default '',
iso2 char(2) NOT NULL default '',
iso3 char(3) NOT NULL default '',
noc char(3) NOT NULL default '',
PRIMARY KEY (id),
INDEX (iso2)
) ENGINE=MyISAM;

-- Data for table countries -- INSERT INTO extras.countries (country, iso2, iso3, noc) VALUES ('Canada', 'CA', 'CAN', 'CAN'); INSERT INTO extras.countries (country, iso2, iso3, noc) VALUES ('United States', 'US', 'USA', 'USA'); INSERT INTO extras.countries (country, iso2, iso3, noc) VALUES ('United States Minor Outlying Islands', 'UM', '', ''); INSERT INTO extras.countries (country, iso2, iso3, noc) VALUES ('Virgin Islands, U.S.', 'VI', 'VIR', 'ISV'); I have enclosed a screen shot of the error. Any ideas where I am going wrong. I would realy like to see Lazarus' "Write Once - Compile Anywhere" statement be an actual reality. Thanks Chris -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 38050 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091129/38f21945/attachment-0001.png>

Reply by email