View Issue Details

IDProjectCategoryView StatusLast Update
0007905mantisbtdb mssqlpublic2014-05-16 15:00
Reporterclan_destina Assigned Todregad  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
OSWindowsOS Version2003 Server 
Product Version1.0.7 
Summary0007905: Install check failed
Description

When trying to install mantis 1.0 stable on sql server I have the following error:

BAD INSERT INTO sitrelmi_user_table(username, realname, email, password, date_created, last_visit, enabled, protected, access_level, login_count, lost_password_request_count, failed_login_count, cookie_string) VALUES ('administrator', '', 'root@localhost', '63a9f0ea7bb98050796b649e85481845', '2007-04-16 02:00:14PM', '2007-04-16 02:00:14PM', 1, 0, 90, 3, 0, 0, '26dacbac22cb72b46c359b809ebf82cdc3339bdc7d0e83504b0842a352d55ff6')

I tried to execute the query directly and this is the error sql server 2005 send:'La conversion del tipo de datos char a datetime produjo un valor datetime fuera del intervalo' that translate into 'the conversion of a char to a datetime produced a datetime value out of range'

I also tried to eliminate de date values from the field and works but when I tried to acces mantis it shows on the footer a database acces error

note: I tried with mantis 1.0.6 1.0.7 with sql2000 and sql2005

TagsNo tags attached.

Relationships

has duplicate 0008599 closedrombert Error during isnert of mantis user... 
has duplicate 0009294 closedrombert fresh install, APPLICATION ERROR 0000401 
has duplicate 0007974 closedrombert Date problem on french MSSQL 

Activities

clan_destina

clan_destina

2007-04-16 12:10

reporter   ~0014357

this is the reference to the thread in the forum http://www.mantisbt.org/forums/viewtopic.php?t=1106&highlight=mssql+insert

vboctor

vboctor

2007-04-18 01:51

manager   ~0014359

Reminder sent to: grangeway

grangeway, any thoughts about this issue?

johnjohn33

johnjohn33

2007-04-20 08:30

reporter   ~0014380

Last edited: 2007-04-23 05:45

I had the same error, you need to replace :
line 78
< var $fmtTimeStamp = "'Y-m-d h:i:sA'";

var $fmtTimeStamp = "'Y-d-m h:i:sA'";

Cordially,

Jonathan

grangeway

grangeway

2007-05-08 18:46

reporter   ~0014459

I take it this is the case for all queries not just the initial install? (i.e. that 2007-08-07 and 2007-07-08 mean the same date depending on where you live in the world.

clan_destina

clan_destina

2007-05-18 10:55

reporter   ~0014558

johnjohn33
replace line 78 of what file?

johnjohn33

johnjohn33

2007-05-21 09:53

reporter   ~0014574

Sorry for answering so lately, you need to replace line 78 in adodb-mssql.inc.php file.

If you take it, it's for all queries.

vboctor

vboctor

2007-05-21 11:52

manager   ~0014576

I find this really strange, I never saw a date format that is Y-d-m, usually it is d-m-Y or m-d-Y or Y-m-d. Does this depend on the locale of the machine running the MS SQL server? That would be even worth.

If that proves to be a needed change in ADODB, please report it to ADODB and include the link to the bug here.

clan_destina

clan_destina

2007-07-09 20:32

reporter   ~0014916

I found a solution for this (this works for EVERY language) so if your database is in french o any other language do the following

1)Copy the query to execute it directly in the mssql adding the following line

set language us_english
GO
/ and then the query /
mantis_user_table(username, realname, email, password, date_created, last_visit, enabled, protected, access_level, login_count, lost_password_request_count, failed_login_count, cookie_string) VALUES ('administrator', '', 'root@localhost', '63a9f0ea7bb98050796b649e85481845', '2007-04-16 02:00:14PM', '2007-04-16 02:00:14PM', 1, 0, 90, 3, 0, 0, '26dacbac22cb72b46c359b809ebf82cdc3339bdc7d0e83504b0842a352d55ff6')

2) Configure the user thar acces the database to have the default language in English to do this go to the Microsoft sql server management studio -> security->login and click the properties of the user that uses mantis to acces the database. Then change the Default language to English

This is not an ADODB problem it only the configuration of SQL SERVER

Hope this helps

dregad

dregad

2013-01-13 09:08

developer   ~0034788

Based on the last entry from @clan_destina, this is not an issue with MantisBT but caused by setup of MSSQL.

Mantis DB Account should be configured to have English as default language in MSSQL server management studio.

@rombert, as you initially confirmed this issue, feel free to reopen if you don't agree with the above statement.

grangeway

grangeway

2014-05-16 15:00

reporter   ~0040360

MantisBT currently supports Mysql and has support for other database engines.

The support for other databases is known to be problematic.

Having implemented the current database layer into Mantis 10 years ago, I'm currently working on replacing the current layer.

If you are interested in using Mantis with non-mysql databases - for example, Oracle, PGSQL or MSSQL, and would be willing to help out testing the new database layer, please drop me an email at paul@mantisforge.org

In the meantime, I'd advise running Mantis with Mysql Only to avoid issues.

Thanks
Paul