Comments (4)
J'ai déjà tenté de faire comme ça oui, mais justement la valeur du paramètre ressort en type string, ce qui provoque une erreur de syntaxe sql !
Le seul moyen de faire propre, c'est de binder le paramètre en forçant son type.
Or c'est impossible avec le code actuel (à moins de se passer de DB::Prepare pour cette req)
C'est un vrai casse-tête ce bug !
from core.
Normalement, si on peut préparer la requête avec un paramètre à condition d'utiliser la notation :number dans le SQL :
$values = array(
'number' => $delete_number,
);
$sql = 'DELETE FROM timeline ORDER BY `datetime` ASC LIMIT :number';
DB::Prepare($sql, $values, DB::FETCH_TYPE_ROW);
Ainsi, ça devrait remplacer :number par sa valeur...
https://www.php.net/manual/fr/pdo.prepared-statements.php
from core.
Bonjour,
Pas sur que le bug vienne de php8 a mon avis il est sur toute les plateforme. Je vais tester un fix
from core.
C'est le fix que j'ai actuellement sur mon jeedom et qui fonctionne.
Avant php8.0, l'erreur était silencieuse et la fonction execute finalisée. Mon historique de timeline était bien purgé (quasi sûr, sinon je l'aurais vu).
from core.
Related Issues (20)
- [FEAT] Improve cron check system (merge all function)
- [BUG] Remove fail2ban check
- [BUG] Traduction Bouton dans la page HOT 1
- [BUG] Binary history not purge
- [BUG] ping manquant dans docker debian 11
- [BUG] Remove cache widget (more issue and not speed gain)
- [BUG] Issue with edit option (magnet, grid) when change of design come from link widget
- [BUG] Some error on domutils
- [BUG] jeeDialog.dialog: Pa de reconfiguration aisée des callback de defaultButtons
- [BUG] jeeDialog.dialog: Pas de possibilité d'aouter un bouton.
- [BUG] On message modal after remove all message table don't update number of message
- [BUG] Synchronisation of modifyWithoutSave
- [FEAT] auto update graph on design
- [FEAT] review event system with mysql table in memory
- [BUG] PHP Fatal error: Call to undefined method eqLogic::clearCacheWidget() HOT 1
- [BUG] Issue on 3d design with select to eqLogic
- [BUG] Bug on widget creation from code
- [FEAT] Instanciate tag on scenario to prevent collision on multi launch
- [FEAT] Rewrite send backup cloud without dependancy
- [BUG] Bug on cmd human insert modal after eqLogic save
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.