Search the web
Sign In
New User? Sign Up
metabase-dev · Metabase Development discussions list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

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
Proposed little change to manager_mysql.php   Message List  
Reply | Forward Message #1110 of 1151 |
Re: [metabase-dev] Proposed little change to manager_mysql.php

Hello,

On 07/17/2004 02:01 PM, Stefano wrote:
> Hello,
>
> In the latest released Metabase the method CreateDatabase() inside
> manager_mysql tests for existance of mysql_create_db function. If that
> function exists goes for it, otherwise issues a "CREATE DATABASE" query.
>
> This is fine and fixes the problem of older versions
> of metabase with MySQL 4 php api. Unfortunately on a test windows XP
> installation (EasyPHP 1.7 packaging Apache 1.3.27 - PHP 4.3.3 - MySQL
> 4.0.15) despite executes correctly mysql_create_db() gives a warning
> about the function being deprecated.
>
> Therefore I suggest to modify the command adding a @ modifier to
> suppress the warning:
>
> $success=@mysql_create_db($name,$db->connection);
>
> A second possibility that could be even better would to remove the use
> of mysql_create_db and always go with a CREATE DATABASE query.

Humm... I have silenced the warning in the latest release. Now, I have
just noticed that I did not make any release after that. I think I will
do it soon when I add a few planned maintenance features. Meanwhile you
may want to get the most upto date version from MetaL CVS repository:

http://www.meta-language.net/download.html#cvs



--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html



Sun Jul 18, 2004 4:50 am

mallemos
Offline Offline
Send Email Send Email

Forward
Message #1110 of 1151 |
Expand Messages Author Sort by Date

Hello, In the latest released Metabase the method CreateDatabase() inside manager_mysql tests for existance of mysql_create_db function. If that function...
Stefano
slocati
Offline Send Email
Jul 17, 2004
5:02 pm

Hello, ... Humm... I have silenced the warning in the latest release. Now, I have just noticed that I did not make any release after that. I think I will do it...
Manuel Lemos
mallemos
Offline Send Email
Jul 18, 2004
4:50 am
Advanced

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