Skip to content

Commit

Permalink
Added experimental support for MSSQL and PgSQL database, through ADOD…
Browse files Browse the repository at this point in the history
…B. (thanks to Paul Richards)

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2425 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Jeroen Latour committed Mar 5, 2004
1 parent 7dc4773 commit 3f2bf47
Show file tree
Hide file tree
Showing 135 changed files with 26,655 additions and 273 deletions.
17 changes: 1 addition & 16 deletions admin/check.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: check.php,v 1.5 2004-01-11 07:16:09 vboctor Exp $
# $Id: check.php,v 1.6 2004-03-05 01:26:17 jlatour Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -102,21 +102,6 @@ function print_yes_no( $p_result ) {
?>
</tr>

<!-- Test DATABASE part 2 -->
<tr>
<td bgcolor="#ffffff">
Selecting database [<?php echo config_get( 'database_name' ) ?>]
</td>
<?php
$result = @db_select_db( config_get( 'database_name' ) );
if ( false == $result ) {
print_test_result( BAD );
} else {
print_test_result( GOOD );
}
?>
</tr>

<!-- Absolute path check -->
<tr>
<td bgcolor="#ffffff">
Expand Down
12 changes: 3 additions & 9 deletions admin/upgrade_inc.php
Expand Up @@ -6,21 +6,16 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: upgrade_inc.php,v 1.8 2004-01-11 07:16:09 vboctor Exp $
# $Id: upgrade_inc.php,v 1.9 2004-03-05 01:26:17 jlatour Exp $
# --------------------------------------------------------
?>
<?php
require_once( '../core.php' );

require_once( 'db_table_names_inc.php' );

# Check if the upgrade table has been created yet
$query = "DESCRIBE $t_upgrade_table";
$result = db_query( $query, false );

# If not, then create it
if ( false === $result ) {
$query = "CREATE TABLE $t_upgrade_table
# Create the upgrade table if it does not exist
$query = "CREATE TABLE IF NOT EXISTS $t_upgrade_table
(upgrade_id char(20) NOT NULL,
description char(255) NOT NULL,
PRIMARY KEY (upgrade_id))";
Expand Down Expand Up @@ -62,7 +57,6 @@
$t_item->set_applied();
}
}
}

# Compatibility function
#
Expand Down
6 changes: 3 additions & 3 deletions bugnote_view_inc.php
Expand Up @@ -6,7 +6,7 @@
# See the files README and LICENSE for details

# --------------------------------------------------------
# $Id: bugnote_view_inc.php,v 1.12 2004-01-11 07:16:06 vboctor Exp $
# $Id: bugnote_view_inc.php,v 1.13 2004-03-05 01:26:16 jlatour Exp $
# --------------------------------------------------------
?>
<?php
Expand All @@ -33,7 +33,7 @@
$t_bugnote_order = config_get( 'bugnote_order' );

# get the bugnote data
$query = "SELECT *,UNIX_TIMESTAMP(date_submitted) as date_submitted
$query = "SELECT *,date_submitted
FROM $t_bugnote_table
WHERE bug_id='$f_bug_id' $t_restriction
ORDER BY date_submitted $t_bugnote_order";
Expand Down Expand Up @@ -64,7 +64,7 @@
# prefix all bugnote data with v3_
$row = db_fetch_array( $result );
extract( $row, EXTR_PREFIX_ALL, 'v3' );
$v3_date_submitted = date( config_get( 'normal_date_format' ), ( $v3_date_submitted ) );
$v3_date_submitted = date( config_get( 'normal_date_format' ), ( db_unixtimestamp( $v3_date_submitted ) ) );

# grab the bugnote text and id and prefix with v3_
$query = "SELECT note
Expand Down
3 changes: 2 additions & 1 deletion config_defaults_inc.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: config_defaults_inc.php,v 1.146 2004-02-29 10:10:04 vboctor Exp $
# $Id: config_defaults_inc.php,v 1.147 2004-03-05 01:26:16 jlatour Exp $
# --------------------------------------------------------


Expand Down Expand Up @@ -37,6 +37,7 @@
$g_db_username = 'root';
$g_db_password = '';
$g_database_name = 'bugtracker';
$g_db_type = 'mysql';

############################
# Mantis Path Settings
Expand Down

0 comments on commit 3f2bf47

Please sign in to comment.