Search the web
Sign In
New User? Sign Up
frontierkernel · Frontier Kernel
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Announce: Native MySQL in Frontier complete on Windows   Message List  
Reply | Forward Message #3199 of 3885 |
I'm pleased to announce the completion of the native MySQL client
within Frontier, for Windows.

Frontier already supports limited MySQL access through the ODBC DLL.
This new native MySQL client within Frontier is unrelated to that DLL
and implements the MySQL client library natively within Frontier, like
I did previously with Frontier and SQLite.

Unfortunately, we don't have access to the old ODBC DLL source for
this open source Frontier Kernel project. I've also noticed that a
bunch of ODBC DLL loads and unloads seem to cause Frontier to crash
over time.

The old ODBC DLL just didn't seem like a production solution that we
could fix or debug. So, rather than tack on the old DLL, I decided to
reimplement MySQL natively. Frontier accesses the MySQL server. You'll
need to have access to a MySQL server for full functionality

The version of MySQL client embedded within the Frontier Kernel is
5.0, which, theoretically, means we only support access to MySQL
5.0.x. In practice, I've tested access to MySQL 4.x databases and have
had some success.

Actually coding was completed mostly in April, but the complete verb
set, with some background information, is now available on the
Frontieropedia at http://frontierkernel.org/docs/verbs/mysql.

Also on the Frontieropedia are the verb files for import into
Frontier, a test table, and a test database.

A vendor drop has been checked in with the MySQL library.

Finally, this should require far less work to make work on the Mac
side, since we don't have to deal with the local file weirdnesses we
did with SQLite. MySQL in Frontier uses connections to the server only.

I'd like to move this into the main trunk as soon as possible, so I'd
appreciate it if some Mac users could create the Mac build.

Have fun,
David




Wed May 30, 2007 3:12 am

zatzdiagnostic
Offline Offline
Send Email Send Email

Forward
Message #3199 of 3885 |
Expand Messages Author Sort by Date

I'm pleased to announce the completion of the native MySQL client within Frontier, for Windows. Frontier already supports limited MySQL access through the ODBC...
David Gewirtz
zatzdiagnostic
Offline Send Email
May 30, 2007
3:12 am

Great news! Thanks so much! ... I'd love to take a crack at the Mac side. It may take several days for me to get into it. I'll keep you all posted. And...
creecode
Offline Send Email
May 30, 2007
3:42 am

Woo hoo! I've had some success with a compilation and a minor test on Power Mac G4, Mac OS X (10.4.9) . I've connected over a network to another server...
creecode
Offline Send Email
May 31, 2007
12:53 am

... Congrats! I know that must have been some very hard but very rewarding work. I linked to the message on my weblog this morning... ...
Steve Kirks
srkbuh
Offline Send Email
May 30, 2007
2:34 pm

Thanks. Actually, the longest time delay was due to finding time to document the thing. Actual implementation wasn't that difficult. I made good notes ...
David Gewirtz
zatzdiagnostic
Offline Send Email
May 30, 2007
7:06 pm

... VERY embarrassed... Fixed... Steve Kirks http://houseofwarwick.com/ warwick@... AIM/iChat: srk@......
Steve Kirks
srkbuh
Offline Send Email
May 30, 2007
10:34 pm

Hey David, I'm not seeing any of the MySQL Client v5.0.37 files at < http://frontierkernel.svn.sourceforge.net/viewvc/frontierkernel/Frontier/vendor/mysql5/ ...
creecode
Offline Send Email
May 30, 2007
9:38 pm

... http://frontierkernel.svn.sourceforge.net/viewvc/frontierkernel/Frontier/vendor/mysql5/ ... Oops. That's the second time I forgot to remove the .svn...
David Gewirtz
zatzdiagnostic
Offline Send Email
May 30, 2007
10:23 pm

Ok for fun and because I can't sleep I compiled the MySQL branch on OS X 10.4 Intel. I didn't want to bother putting all the mysql client source in, so I ...
Henri Asseily
hasseily
Offline Send Email
May 30, 2007
11:40 pm

Upon further review, the crash in the getRow() function is due to a certain kind of table structure. A "select 1" works fine, so does a simple table. However,...
Henri Asseily
hasseily
Offline Send Email
May 30, 2007
11:50 pm

I can confirm crash. I also get crash with... CREATE TABLE lots ( id int(11) AUTO_INCREMENT NOT NULL, PRIMARY KEY(id) ) The new table is created in the...
creecode
Offline Send Email
May 31, 2007
3:05 am

I tested here. This code worked without error here, and created a table in the "frontier" database: on thomasbug () { local (id, result, sql, queryid); ...
David Gewirtz
zatzdiagnostic
Offline Send Email
May 31, 2007
5:32 am

Sorry if I wasn't clear enough: I get a crash when doing a SELECT from the table whose definition is what I sent. So create the table, populate it with some...
Henri Asseily
hasseily
Offline Send Email
May 31, 2007
6:03 am

That worked without error. Thanks! My error was using mysql.easyQuery....
creecode
Offline Send Email
May 31, 2007
6:15 am

The error is triggered upon handling of NULL fields. I have a MYSQL_TYPE_FLOAT that is NULL. In langmysql.c, line 560, you have: if (!newfilledhandle...
Henri Asseily
hasseily
Offline Send Email
May 31, 2007
6:50 am

... column_text = row[fieldNumber]; if (column_text == nil) column_text_size = 0; else column_text_size = strlen (column_text); // Exit the verb, converting...
Henri Asseily
hasseily
Offline Send Email
May 31, 2007
7:21 am

Hello all, Based on Henri's simple fix I've come up with a change that returns nil for NULL values in fields. I think it could be useful to be able to...
creecode
Offline Send Email
May 31, 2007
7:04 pm

I've put up the change. We can always change or rollback if needed. Toodle-looooooooo....... creecode...
creecode
Offline Send Email
May 31, 2007
10:25 pm

Seems like a great change and thanks to both of you. Sorry about not responding sooner. My main monitor just decided to crap out for no good reason. Acer....
David Gewirtz
zatzdiagnostic
Offline Send Email
Jun 1, 2007
2:41 am

One remaining question regarding the Mac build is: do we build a local mysql client library as done with the Windows build, or does one assume a preexisting...
Henri Asseily
hasseily
Offline Send Email
Jun 1, 2007
6:14 am

Henri, my approach has always been that Frontier should be monolithic -- everything it needs should be in Frontier, or Frontier should make it available. This...
David Gewirtz
zatzdiagnostic
Offline Send Email
Jun 1, 2007
9:00 am

... Well you've got 19 versioned library files for mysql's client library on the Mac, and that's not counting the 4 versions: 10.3 PPC 32 bit, 104. PPC 32 bit,...
Henri Asseily
hasseily
Offline Send Email
Jun 1, 2007
10:44 am

... as a non-kernel-coder actively using Frontier/Mac, i think i'm in th latter category, and i would prefer *not* to have a local, monolithic build; most...
steve harley
garbanzito_real
Offline Send Email
Jun 1, 2007
4:50 pm

... To do much of anything else with mysql, you need to have it locally installed already. Even mysql newbies are told to install it, as the tutorials walk...
Seth
yahoo.seth@...
Send Email
Jun 1, 2007
6:37 pm

I'm ok with that. ... installing...
David Gewirtz
zatzdiagnostic
Offline Send Email
Jun 1, 2007
8:11 pm

Hello Henri, ... How do we do this for Mac and Win? If we can get this done and make it relatively painless for the user to get the binaries, I could go for...
creecode
Offline Send Email
Jun 8, 2007
8:36 pm

Hello all, I think the source and binary we distribute should work out of the box with as little extra work needed to get something going. If you need ...
creecode
Offline Send Email
Jun 8, 2007
8:26 pm

Henri, any chance you can upload the database, along with a select that crashes? I can see if it gorks on Windows as well. -- David P.S. You can also mail it...
David Gewirtz
zatzdiagnostic
Offline Send Email
May 31, 2007
3:07 am

Hey David, I've been working on the Windows side for a bit and checked out a fresh copy of the branch, did a debug compile, then started degugging. I'm getting...
creecode
Offline Send Email
Jun 9, 2007
4:43 am
First  | < Prev  |  Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help