Ticket #13399

printlnSqlLogで無限ループ
Date d'ouverture: 2008-08-28 15:20 Dernière mise à jour: 2008-08-28 15:20

Rapporteur:
(Anonyme)
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun

Détails

発生条件は不明ですがprintlnSqlLogで無限ループが発生して
いる状況に遭遇しました。

public static void printlnSqlLog(String string,
Survey survey, HashMap paramMap)
のwhile文で、paramMap.contains()がfalseだと
wstrが変更されないので、ループが抜けられないように思い
ます。

Ticket History (1/1 Histories)

2011-05-06 17:51 Updated by: sari
Commentaire

SQLの文字列として'?'が存在した場合に無限ループに陥るようです。 ex) insert into test_table (col1, col2) values ('?', '?'); ※PreparedStatementとしての?ではなく、文字列として'?'をDBに更新したいケース

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion