Explorar el Código

Correction requete SQL

Loquicom hace 5 años
padre
commit
8ee0847b16
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      node/src/sql.js

+ 1 - 1
node/src/sql.js

@@ -49,7 +49,7 @@ module.exports.getFile = 'SELECT fi_hash as hash, fi_name as name, fi_data as da
     + 'INNER JOIN USERFILE uf on f.fi_id = uf.fi_id '
     + 'INNER JOIN USER u on uf.us_id = u.us_id '
     + 'WHERE us_name = lower(?) '
-    + 'AND fi_hash = lower(?);';
+    + 'AND fi_hash = ?;';
 
 // Ajoute un fichier en base
 module.exports.addFile = 'INSERT INTO FILE("fi_name", "fi_data") VALUES (lower(?), ?);';