? ? ? Failure

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
30 Nov 2018

Summary of Changes

Fix an error at /administrator/index.php?option=com_privacy

An error has occurred.

    102 [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near '2018'. 

See http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-add
http://msdn.microsoft.com/en-us/library/ms186819.aspx

The first argument can not be a string (I mean the quoted string), the second must be an integer, the third argument is manually quoted in:

$query->where($query->dateAdd($db->quote($now), $period, 'DAY') . ' > ' . $db->quoteName('requested_at'));

Testing Instructions

Code review

Expected result

Page /administrator/index.php?option=com_privacy will start working.

Actual result

Error

Documentation Changes Required

No

avatar csthomas csthomas - open - 30 Nov 2018
avatar csthomas csthomas - change - 30 Nov 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Nov 2018
Category MS SQL Libraries
avatar csthomas csthomas - change - 30 Nov 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 30 Nov 2018
Category MS SQL Libraries MS SQL Libraries Unit Tests
avatar csthomas csthomas - change - 30 Nov 2018
Labels Added: ?
avatar csthomas csthomas - change - 30 Nov 2018
The description was changed
avatar csthomas csthomas - edited - 30 Nov 2018
avatar alikon
alikon - comment - 1 Dec 2018

I have tested this item successfully on a7a545b

code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23211.

avatar alikon alikon - test_item - 1 Dec 2018 - Tested successfully
avatar csthomas
csthomas - comment - 5 Dec 2018

Since this is only related to the MSSQL database, I am asking for RTC

avatar AxelBangert
AxelBangert - comment - 24 Dec 2018

I run Win 7 Prof x64 ENU , IIS 7.5, PHP 5.69, MS-SQL-SRV-EXPRESS-2014, ODBC driver 11. All prerequisits are fullfilled. On start installation I get this error: Fehler [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Incorrect syntax near '59'. I checked this code token. The only thing that makes sense to me would be that passage in D:\webroot\Joomla\administrator\components\com_admin\sql\updates\postgresql\3.7.0-2016-08-22.sql

Code Start
INSERT INTO "#__extensions" ("extension_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "manifest_cache", "params", "custom_data", "system_data", "checked_out", "checked_out_time", "ordering", "state") VALUES
(459, 'plg_editors-xtd_menu', 'plugin', 'menu', 'editors-xtd', 0, 1, 1, 0, '', '', '', '', 0, '1970-01-01 00:00:00', 0, 0);
Code End

Joomla-Installation-Error


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23211.

avatar AxelBangert
AxelBangert - comment - 24 Dec 2018

Hi supporters,
it may depend on odbc driver issues, but I guess it is the hard coded extensionID 459 that is not accepted. https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/known-issues-in-this-version-of-the-driver?view=sql-server-2017 . These issues are the same and even worser for odbc driver 11.
Best regards
Axel Arnold Bangert - Herzogenrath 24.12.2018


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23211.

avatar csthomas
csthomas - comment - 11 Jan 2019

Is there any reason way this PR can not be merged?
This is just a fix in the dateAdd() method in sqlsrv query class.

avatar AxelBangert
AxelBangert - comment - 12 Jan 2019

Thank you - OK.

avatar bonzani
bonzani - comment - 18 Jan 2019

I have tested this item successfully on a7a545b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23211.

avatar bonzani bonzani - test_item - 18 Jan 2019 - Tested successfully
avatar SharkyKZ SharkyKZ - test_item - 5 Mar 2019 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 5 Mar 2019

I have tested this item successfully on a7a545b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23211.

avatar SharkyKZ
SharkyKZ - comment - 5 Mar 2019

I have tested this item successfully on a7a545b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23211.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Mar 2019

Status "Ready To Commit".

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Mar 2019
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Mar 2019

Status "Ready To Commit".

avatar HLeithner HLeithner - change - 5 Mar 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-03-05 11:39:33
Closed_By HLeithner
Labels Added: ?
avatar HLeithner HLeithner - close - 5 Mar 2019
avatar HLeithner HLeithner - merge - 5 Mar 2019
avatar HLeithner
HLeithner - comment - 5 Mar 2019

thx

Add a Comment

Login with GitHub to post a comment