|
|
Choosing A Webhost: |
mantisbt/core database_api.php,1.45,1.46: msg#00050bug-tracking.mantis.cvs
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23416/core Modified Files: database_api.php Log Message: minor bug fixes when upgrading from older versions - 0.17.5 - upgrade table didn't exist - 0.17.5 - error on field names in db_key_exists_on_field Index: database_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/database_api.php,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- database_api.php 17 Jul 2005 12:24:00 -0000 1.45 +++ database_api.php 15 Aug 2005 22:13:52 -0000 1.46 @@ -209,6 +209,8 @@ # Check if there is an index defined on the specified table/field and with # the specified type. # + # @@@ thraxisp - this only works with MySQL + # # $p_table: Name of table to check # $p_field: Name of field to check # $p_key: key type to check for (eg: PRI, MUL, ...etc) @@ -223,8 +225,8 @@ for ( $i=0 ; $i < $count ; $i++ ) { $row = db_fetch_array( $result ); - if ( $row['field'] == $c_field ) { - return ( $row['key'] == $c_key ); + if ( $row['Field'] == $c_field ) { + return ( $row['Key'] == $c_key ); } } return false; ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | mantisbt login_page.php,1.51,1.52, Glenn Henshaw |
|---|---|
| Next by Date: | mantisbt/admin upgrade_inc.php,1.18,1.19, Glenn Henshaw |
| Previous by Thread: | mantisbt login_page.php,1.51,1.52, Glenn Henshaw |
| Next by Thread: | mantisbt/admin upgrade_inc.php,1.18,1.19, Glenn Henshaw |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|