Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL] Literki "bo" powodują błąd syntaxa ?
pturkowski
post
Post #1





Grupa: Zarejestrowani
Postów: 21
Pomógł: 0
Dołączył: 25.11.2006

Ostrzeżenie: (0%)
-----


Witam,
to jest chyba najdziwniejszy błąd z jakim się w życiu spotkałem.

Korzystam z CMS Drupala i modułu views. Rzecz wygląda następująco. Można tam ustawić filtr rekordów wyciąganych z bazy i jednym z nich jest pole:

  1. Wyciągnij z bazy użytkowników którzy w swoim adresie, polu region podali: centre LUB limousin LUB auvergne LUB bourgogne


No i teraz motyw, dopóki nie ma "bourgogne" wszystko działa. Dołożę "bourgogne" i wywala taki oto błąd:

  1. user warning: You have an error IN your SQL syntax; CHECK the manual that corresponds TO your MySQL server version FOR the RIGHT syntax TO USE near 'node'ourgogne%'))) )' at line 1 query: SELECT count( DISTINCT(node.nid)) FROM node node LEFT JOIN users_roles users_roles ON node.uid = users_roles.uid INNER JOIN users users ON node.uid = users.uid LEFT JOIN profile_values profile_regionlive ON users.uid = profile_regionlive.uid AND profile_regionlive.fid = '11' LEFT JOIN profile_values profile_nom ON users.uid = profile_nom.uid AND profile_nom.fid = '1' LEFT JOIN profile_values profile_prenom ON users.uid = profile_prenom.uid AND profile_prenom.fid = '2' LEFT JOIN profile_values profile_enddateevs ON users.uid = profile_enddateevs.uid AND profile_enddateevs.fid = '19' LEFT JOIN profile_values profile_cooriginevs ON users.uid = profile_cooriginevs.uid AND profile_cooriginevs.fid = '37' LEFT JOIN profile_values profile_coevs ON users.uid = profile_coevs.u IN /home/sites/sve-connexion.fr/public_html/includes/DATABASE.mysql.inc ON line 173.
  2. user warning: You have an error IN your SQL syntax; CHECK the manual that corresponds TO your MySQL server version FOR the RIGHT syntax TO USE near 'node'ourgogne%'))) ) ORDER BY users_name ASC LIMIT 0, 100' at line 1 query: SELECT DISTINCT(node.nid), users.name AS users_name, users.uid AS users_uid, profile_nom.value AS profile_nom_value, profile_prenom.value AS profile_prenom_value, profile_enddateevs.value AS profile_enddateevs_value, profile_cooriginevs.value AS profile_cooriginevs_value, profile_coevs.value AS profile_coevs_value, profile_city.value AS profile_city_value, profile_jobstatus.value AS profile_jobstatus_value, profile_whoareyou.value AS profile_whoareyou_value FROM node node LEFT JOIN users_roles users_roles ON node.uid = users_roles.uid INNER JOIN users users ON node.uid = users.uid LEFT JOIN profile_values profile_regionlive ON users.uid = profile_regionlive.uid AND profile_regionlive.fid = '11' LEFT JOIN profile_values profile_nom ON users.uid = profile_nom.uid AND p IN /home/sites/sve-connexion.fr/public_html/includes/DATABASE.mysql.inc ON line 173.


zamienie "bourgogne" na "liurgogne" i działa. Mojemu profilowi przypiszę "liu..." i pokaże mnie na liście, zmienię na "bou" i nie pokazuje - czyli działa. Ale jak zmienie ustawienia w filtrze z "liu.." na "bou..." to nie zależnie od tego czy jest taki użytkownik czy go nie ma - wywala błąd jak powyżej.

I jak wydać w błędzie pokazuje "ourgogne". Tak jakby zjadało pierwszą literę ?

Może ktoś coś poradzić ?

Przydatne info:
MySQL database 5.0.77
PHP 4.4.9
Unicode library PHP Mbstring Extension
Web server Apache/2

Ten post edytował pturkowski 6.05.2009, 19:57:11
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.12.2025 - 01:55