groovy/grailsのSQLクエリをテストしようとしています。なぜ、SQLインサートが機能していないのか、私はそのクエリーラインを印刷しようとしています。驚いたことに、その作業でもないので、私はgroovyの文字列フォーマットについて調査しています。誰かがそれについての手がかりを持っている場合は、私に知らせてください。groovyの文字列フォーマット
println """INSERT INTO iu (version, path, uuid, name, description,
sourceversionfrom, sourceversionexto,
targetversionfrom, targetversionexto,
phase, directive, classname, methodname,
functionalarea_id, upgradepath_id, date_created,
last_updated, mark4delete, firstAvailable_id,
lastAvailable_id, uniqueid_id, elementcreateddate,
purpose, implementationdetails, userimpact)
VALUES (${this.version}, ${this.path}, ${this.uuid}, ${this.name},
${this.description}, ${this.sourceversionfrom},
${this.sourceversionexto}, ${this.targetversionfrom},
${this.targetversionexto}, ${this.phase}, ${this.directive},
${this.classname}, ${this.methodname}, $functionalarea_id,
$upgradepath_id, NOW(), NOW(), 0, ${this.projID},
${this.projID}, ${this.uniqueid_id},
${this.getElementCreatedDate()}, ${this.purpose},
${this.implementationDetails}, ${this.userImpact})"""
プログラムが停止し、そのライン
「プログラムは停止していますか?」とはどういう意味ですか?それはクラッシュする?何も印刷せずにハングアップしますか?ところであなたが投稿したコードは私にはうまく見えます... –