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...
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
Proposed little change to manager_mysql.php   Message List  
Reply | Forward Message #1109 of 1151 |
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.

Regards,
Stefano




Sat Jul 17, 2004 5:01 pm

slocati
Offline Offline
Send Email Send Email

Forward
Message #1109 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