? ? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
12 Jan 2017

Pull Request for Issue #13569 .
Apparently, MySQL can't cast to INTEGER while PostgreSQL and MariaDB can.

Summary of Changes

This PR changes the casting the other way around and makes use of the existing castAsChar() method we have in the querybuilder.

Testing Instructions

Test regular search (not smart search) on various database engines (MySQL, PostgreSQL)

Documentation Changes Required

None

avatar Bakual Bakual - open - 12 Jan 2017
avatar Bakual Bakual - change - 12 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jan 2017
Category Front End Plugins
avatar Bakual
Bakual - comment - 12 Jan 2017

@alikon Can you test that on PostgreSQL and review the change?

avatar ot2sen
ot2sen - comment - 12 Jan 2017

I have tested this item successfully on 3d4e293

With patch applied the error is gone and search works. confirmed


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

avatar ot2sen ot2sen - test_item - 12 Jan 2017 - Tested successfully
avatar ot2sen
ot2sen - comment - 12 Jan 2017

Tested on MySQL and error from before now gone :)

screen shot 2017-01-12 at 04 14 54


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

avatar infograf768
infograf768 - comment - 12 Jan 2017

OK here too on mysql

avatar Bakual Bakual - change - 12 Jan 2017
Labels Added: ?
avatar anibalsanchez
anibalsanchez - comment - 12 Jan 2017

I have tested this item successfully on b4c4581

Test OK - MySQL.


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

avatar anibalsanchez anibalsanchez - test_item - 12 Jan 2017 - Tested successfully
avatar alikon
alikon - comment - 12 Jan 2017

@Bakual i'll test on postgresql
but looking at the #__fileds_values field declaration it seems quite weird to me

'item_id' varchar(255) NOT NULL COMMENT 'Allow references to items which have strings as ids, eg. none db systems.',
avatar slibbe
slibbe - comment - 12 Jan 2017

I have tested this item successfully on b4c4581

TEsted succefully, on both mysql and postgresql.


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

avatar slibbe slibbe - test_item - 12 Jan 2017 - Tested successfully
avatar csthomas
csthomas - comment - 12 Jan 2017

I have tested this item successfully on b4c4581

Tested on sql server in combination with PR #13262


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

avatar csthomas csthomas - test_item - 12 Jan 2017 - Tested successfully
avatar csthomas
csthomas - comment - 12 Jan 2017

IMHO It would be good to change type of item_id to integer on another PR.

avatar alikon
alikon - comment - 12 Jan 2017

I have tested this item successfully on b4c4581

on postgresql works as before


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

avatar alikon alikon - test_item - 12 Jan 2017 - Tested successfully
avatar alikon
alikon - comment - 12 Jan 2017

can we have RTC here as has been tested on 3 db's
on last thing for me is #13571 (comment)
pinging @laoneo

avatar dgt41 dgt41 - change - 12 Jan 2017
Status Pending Ready to Commit
avatar dgt41
dgt41 - comment - 12 Jan 2017

RTC


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

avatar wilsonge wilsonge - change - 12 Jan 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-01-12 18:08:01
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 12 Jan 2017
avatar wilsonge wilsonge - merge - 12 Jan 2017
avatar AndySDH
AndySDH - comment - 11 Oct 2021

IMHO It would be good to change type of item_id to integer on another PR.

Sorry for necroposting, but does anyone know why item_id on the fields_values table is not an INT but a VARCHAR?

Add a Comment

Login with GitHub to post a comment