cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

pd16.6 reverse engineer default value '~'

Former Member
0 Likes
1,165

i user pd16.6 reverse engineer extact mysql5.6 physical model.

if column had default value ,colum is enclolsed by character '~' , not character '(quote).

just like

i changed setting,just like

.problem still exist!

who can help me !

Accepted Solutions (1)

Accepted Solutions (1)

arnaud_laurent
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello,
As a workaround, you may run a VBScript after the reverse like the one below which can be included in the XDB file in an AfterDatabaseReverseEngineer Eventhandler for the Metaclass Model.
See in our documentation -> DBMS Resource File Reference > Managing Generation and Reverse Engineering -> Adding Scripts Before or After Generation and Reverse Engineering

' Sample script:

for each t in ActiveModel.Tables
if t.ClassName = "Table" then
for each c in t.Columns
if c.ClassName = "Column" then
if len(c.DefaultValueDisplayed) > 2 and InStr(c.DefaultValueDisplayed,"~") = 1 then
newDefault = c.DefaultValueDisplayed
newDefault = left(newDefault, len(newDefault) - 1)
newDefault = right(newDefault, len(newDefault) - 1)
c.DefaultValue = newDefault
end if
end if
next
end if
next

HTH,

Arnaud

Former Member
0 Likes

thank you very much!

Answers (1)

Answers (1)

Former Member
0 Likes

that is OK!

"our documentation" just means "help document":)

thank you very much!