79295259

Date: 2024-12-19 18:29:22
Score: 1.5
Natty:
Report link

The correct solution is that in the PreparedStatement instead of setFloat, setDouble, setString functions the setObject must be used to inject and the problem does not arise. By the way the setObject function makes type conversions, it can be feed with String and it converse it to Float, Double, Integer when it is necessary.

Reasons:
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Laszlo voros