Wich DBMS?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
MTW
Posts: 13
Joined: 02 Sep 2005, 08:44
Contact:

Wich DBMS?

Post by MTW »

Hi all

I need to test which database type is used in the application

Is there a config variable or other manner to know if manti is working with MySQL, MSSQL or other DBMS?

thx

Mtw
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Which version of Mantis are you referring to?

Regards,
Victor
Subscribe to Mantis Blog
http://www.futureware.biz/
MTW
Posts: 13
Joined: 02 Sep 2005, 08:44
Contact:

Post by MTW »

Hi, I'm using rc2

I had to customize the filter_api with some sql code specific to MySQL and I'd like to test for the database used to enable or disable that feature

thanks,

MTW
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Use the following check:
config_get('db_type') == 'mysql'

if true, then the database is MySQL.

Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect/
MTW
Posts: 13
Joined: 02 Sep 2005, 08:44
Contact:

Post by MTW »

thank u, I'll apply the chek to my code

MTW
Post Reply