Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

mantisbt/core database_api.php,1.45,1.46: msg#00050

bug-tracking.mantis.cvs

Subject: mantisbt/core database_api.php,1.45,1.46

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>
Google Custom Search

Free Magazines

Cisco News
Receive 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

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo