Я пытаюсь протестировать SQL-запрос для groovy/grails. Переходя к тому, почему вставка SQL не работает, я пытаюсь распечатать эту строку запроса. Удивительно, даже не работа, поэтому я изучаю форматирование строк в groovy. Если у кого-то есть подсказка, пожалуйста, дайте мне знать.groovy string форматирование
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})"""
программа останавливается и стоит на этой линии после
Что вы подразумеваете под _ "программа останавливается и останавливается на _ _? Он падает? Он ничего не печатает и не висит? BTW: Код, который вы отправили, выглядит хорошо для меня ... –