You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-11-21 15:39:44

WebGreg
Member
Registered: 2020-02-27
Posts: 740

MySQL query warning - DOUBLE value - how to fix?

Hi

How do you solve problems with duplicate values? In the log I found this entry:

  SQL: SELECT `glpi_peripherals`.`id`, `networkports_mac`.`id` AS `portid_mac`, `networkports_ifnumber`.`id` AS `portid_ifnumber` FROM `glpi_peripherals` LEFT JOIN `glpi_networkports` AS `networkports_mac` ON (`glpi_peripherals`.`i
d` = `networkports_mac`.`items_id` AND `networkports_mac`.`itemtype` = 'Peripheral') LEFT JOIN `glpi_networkports` AS `networkports_ifnumber` ON (`glpi_peripherals`.`id` = `networkports_ifnumber`.`items_id` AND `networkports_ifnumb
er`.`itemtype` = 'Peripheral') WHERE (`networkports_mac`.`mac` IN ('74:xx:xx:xx:xx:b0')) AND (`networkports_ifnumber`.`logical_number` = 'bridge/BAGG2/sfp-sfpplus6')
  Warnings:
1292: Truncated incorrect DOUBLE value: 'bridge/BAGG2/sfp-sfpplus6'


SOLVED - after update 10.0.4 > 10.0.6-dev looks OK.

Last edited by WebGreg (2023-01-04 12:13:14)


--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS

Offline

#2 2022-11-25 15:51:23

WebGreg
Member
Registered: 2020-02-27
Posts: 740

Re: MySQL query warning - DOUBLE value - how to fix?

Any hint how to fix it?


--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS

Offline

#3 2022-12-02 12:49:45

WebGreg
Member
Registered: 2020-02-27
Posts: 740

Re: MySQL query warning - DOUBLE value - how to fix?

smile


--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS

Offline

#4 2022-12-05 11:11:23

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: MySQL query warning - DOUBLE value - how to fix?

"Truncated incorrect DOUBLE value" refers to the "double" numeric type which is basically a decimal number, not duplicate. SQL warnings were enabled for 10.0 so in cases where we are accidentally trying to search for a text value in numeric columns there is now this warning shown. It is a bug.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#5 2022-12-05 12:48:19

WebGreg
Member
Registered: 2020-02-27
Posts: 740

Re: MySQL query warning - DOUBLE value - how to fix?

Hi cconard96. Thank you for your response.

Should I register a new issue with this message or just wait because you know about it?


--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS

Offline

#6 2022-12-05 12:57:44

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: MySQL query warning - DOUBLE value - how to fix?

Please open an issue on the GitHub. I'm working on another project/feature so I may accidentally forget to look into this when I have a chance to switch tasks.
Please include the full stack trace too from the sql-errors.log log file.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#7 2022-12-05 13:08:13

WebGreg
Member
Registered: 2020-02-27
Posts: 740

Re: MySQL query warning - DOUBLE value - how to fix?


--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS

Offline

#8 2023-01-04 12:13:18

WebGreg
Member
Registered: 2020-02-27
Posts: 740

Re: MySQL query warning - DOUBLE value - how to fix?

Up


--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS

Offline

Board footer

Powered by FluxBB