trailing backslashes

3 views
Skip to first unread message

j

unread,
Oct 14, 2011, 3:23:37 PM10/14/11
to RISE
hi again

i think i may have discovered an issue with backslashes

/**
* 63: Rename entity Entity1 to url\
**/

rise is generating string literals such as "url\" from entities with a
trailing backslash in the title (simple typos in my case) and it's
tripping mysql up

i also see...

/**
* 64: Rename entity url\ to url
**/

this i recall was a simple name change whilst editing the model, but i
haven't run the model into the db yet and it's already recording my
every move... unless i can clear the model's internal changelog
somehow, i'm guessing this error will persist

if i delete and recreate the tables with the trailing \, i'm concerned
it may still generate the following in the mysql script:

- create entity
- rename entity to url\
- rename url\ to url
- delete url
- create url

which leaves me in the lurk still, has anyone had to deal with this?
can we clear the changelog for a model?

cheers

j

unread,
Oct 14, 2011, 3:32:56 PM10/14/11
to RISE
ok, "File" -> "Refactor Model" truncates the changelog nicely and
gives me a nice clean model free of any erroneous differential
statements

though the trailing \ in entity names (and possibly other definitions)
is still a mysql code generator bug

cheers!

j

unread,
Oct 14, 2011, 3:46:25 PM10/14/11
to RISE
so.. what DO we do if we accidently name something with a trailing
\ ?

even if we remove the trailing \, the model will always deliver a
shotty string literal (eg "name\") via the mysql differential script,
we can't refactor forever obviously

HOlsen

unread,
Oct 17, 2011, 8:09:42 AM10/17/11
to RISE
The RISE model is an XML document. If you need to alter the model, you
can open it using an XML editor or a text editor.


Best regards,
RISE to Bloome Software

j

unread,
Oct 17, 2011, 10:19:44 AM10/17/11
to RISE
thank you :)
Reply all
Reply to author
Forward
0 new messages