[openelec-Commits] r1269 - branches/migration-framework-46x/sql/pgsql

0 views
Skip to first unread message

fmi...@adullact.net

unread,
Aug 17, 2017, 2:40:30 PM8/17/17
to openmairi...@googlegroups.com
Author: fmichon
Date: 2017-08-17 20:40:25 +0200 (Thu, 17 Aug 2017)
New Revision: 1269

Modified:
branches/migration-framework-46x/sql/pgsql/trt_decoupage_init_bureauforce.inc.php
Log:
* Ajout d'un % dans la requ?\195?\170te de mise ?\195?\160 jour des bureaux forc?\195?\169s pour que l'op?\195?\169rateur modulo soit interpol?\195?\169 correctement.


Modified: branches/migration-framework-46x/sql/pgsql/trt_decoupage_init_bureauforce.inc.php
===================================================================
--- branches/migration-framework-46x/sql/pgsql/trt_decoupage_init_bureauforce.inc.php 2017-08-17 17:59:50 UTC (rev 1268)
+++ branches/migration-framework-46x/sql/pgsql/trt_decoupage_init_bureauforce.inc.php 2017-08-17 18:40:25 UTC (rev 1269)
@@ -11,7 +11,7 @@
WHERE id_electeur in (
SELECT id_electeur FROM %1$selecteur
JOIN %1$sdecoupage ON decoupage.code_voie = electeur.code_voie
- AND CASE numero_habitation % 2
+ AND CASE numero_habitation %% 2
WHEN 0
THEN decoupage.premier_pair <= numero_habitation AND numero_habitation <= decoupage.dernier_pair
WHEN 1
@@ -31,7 +31,7 @@
WHERE id in (
SELECT mouvement.id FROM %1$smouvement
JOIN %1$sdecoupage ON decoupage.code_voie = mouvement.code_voie
- AND CASE numero_habitation % 2
+ AND CASE numero_habitation %% 2
WHEN 0
THEN decoupage.premier_pair <= numero_habitation AND numero_habitation <= decoupage.dernier_pair
WHEN 1
@@ -46,4 +46,4 @@
$_SESSION["liste"]
);

-?>
\ No newline at end of file
+?>

Reply all
Reply to author
Forward
0 new messages