update refactor with where clause

1 view
Skip to first unread message

Madruga

unread,
Apr 2, 2009, 11:18:30 PM4/2/09
to Autobase
Is it possible?

I'm using autobase 0.8.2.5, grails 1.1 and mbjarland ldsl.jar (well...
windows...) and when trying to execute the migration I get
RuntimeException: Unknow tag: where

is something wrong with it? Has some workaround?

changeSet(id:'UpdateTest, author:'madruga') {
update(tableName: 'foo') {
column(name: 'bar', value: 'updated value')
where {
id=10
}
}
}

Regards,
Madruga

Robert Fischer

unread,
Apr 3, 2009, 9:15:50 AM4/3/09
to grails-...@googlegroups.com
Put the where in parenthesis, not bracket: where('id=10')

~~ Robert.
--
~~ Robert Fischer.
Grails Training http://GroovyMag.com/training
Smokejumper Consulting http://SmokejumperIT.com
Enfranchised Mind Blog http://EnfranchisedMind.com/blog

Check out my book, "Grails Persistence with GORM and GSQL"!
http://www.smokejumperit.com/redirect.html
Reply all
Reply to author
Forward
0 new messages