TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-project-tt-products@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 11.10.2007, 10:25
Unai Aizpurua
Gast
 
Beiträge: n/a
Standard [TYPO3-shop] Uppercase and and lowercase

Hi All,

When I make a search in tt_products and it searchs exactly in capital
letters and small letters.

Perhaps the person who makes the search types all in capitals and the
results shows nothing when the product exists.

There is a property for search exact matches in capitals and small
letters? I haven't seen it.

Thanks in advance.

Unai Aizpurua
unai (AT) alambre (DOT) net
_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 11.10.2007, 15:03
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] Uppercase and and lowercase

Hello

> When I make a search in tt_products and it searchs exactly in capital
> letters and small letters.
>
> Perhaps the person who makes the search types all in capitals and the
> results shows nothing when the product exists.
>
> There is a property for search exact matches in capitals and small
> letters? I haven't seen it.


tt_products uses the TYPO3 method tslib_cObj::searchWhere. This does not
support case sensitive searches.

It will give back SQL where clauses like

WHERE name LIKE '%Abc%'

This will be case insensitive in MySQL.

What you need ist

WHERE name LIKE BINARY '%Abc%'

So you can make a feature request on the bugtracker for TYPO3 Core to
extend the API to make it case sensitive.

function searchWhere($sw,$searchFieldList,$searchTable='') {

- Franz

_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 11.10.2007, 16:01
Unai Aizpurua
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] Uppercase and and lowercase

Hi Franz,

Perhaps my poor english is not helping me.

I have this products:

1001 ACAENA VERDE
1002 AGAVE PLANT
2121 AGAVE MARRON

When I search: "agave" nothing is found.

When I search "AGAVE" there are two results found.

What I want is that are two results in the two cases not only in Case
Sensitive.

Thanks a lot four you helping and the excelent extension!!

Unai Aizpurua
unai (AT) alambre (DOT) net


Franz Holzinger escribió:
> Hello
>
>> When I make a search in tt_products and it searchs exactly in capital
>> letters and small letters.
>>
>> Perhaps the person who makes the search types all in capitals and the
>> results shows nothing when the product exists.
>>
>> There is a property for search exact matches in capitals and small
>> letters? I haven't seen it.

>
> tt_products uses the TYPO3 method tslib_cObj::searchWhere. This does not
> support case sensitive searches.
>
> It will give back SQL where clauses like
>
> WHERE name LIKE '%Abc%'
>
> This will be case insensitive in MySQL.
>
> What you need ist
>
> WHERE name LIKE BINARY '%Abc%'
>
> So you can make a feature request on the bugtracker for TYPO3 Core to
> extend the API to make it case sensitive.
>
> function searchWhere($sw,$searchFieldList,$searchTable='') {
>
> - Franz
>

_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 14.10.2007, 14:33
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] Uppercase and and lowercase

Hello Unai,

> Perhaps my poor english is not helping me.
>
> I have this products:
>
> 1001 ACAENA VERDE
> 1002 AGAVE PLANT
> 2121 AGAVE MARRON
>
> When I search: "agave" nothing is found.
>
> When I search "AGAVE" there are two results found.
>
> What I want is that are two results in the two cases not only in Case
> Sensitive.


Try such a query in phpMyAdmin:

SELECT *
FROM `tt_products`
WHERE title LIKE '%blue'


This will find as result:

Brilliant Blue
Skyhigh Blue

So this is not case sensitive.

SELECT *
FROM `tt_products`
WHERE title LIKE '%BLU%'

Gives me the same result.
Maybe you MySQL is misconfigured.

- Franz




_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3-german] Frontenduser-Namen nach Editing immer lowercase Marius Shekow typo3-german@lists.netfielders.de 3 08.10.2007 14:13
Re: [TYPO3-shop] Again: 2 different mails shop/customer? Franz Holzinger typo3-project-tt-products@lists.netfielders.de 2 21.07.2007 12:17
[TYPO3] Undesired uppercase in tt_news Damiano Morosi typo3-english@lists.netfielders.de 0 07.06.2007 16:22
[TYPO3-shop] choice of shop extension: connection to ERP Mathias Behrle typo3-project-tt-products@lists.netfielders.de 0 17.02.2007 13:36
[TYPO3-dev] FE usernames with uppercase letters get broken if youchange something in BE. Andreas Balzer typo3-dev@lists.netfielders.de 2 17.02.2007 11:04


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:22 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77