[ http://jira.andromda.org/browse/ANDVS-2?page=all ] Chris Micali resolved ANDVS-2: ------------------------------
Resolution: Fixed - Patch applied - AndroMDA.NHibernateSupport.dll version increased to 1.0.6.0 - New AndroMDA.NHibernateSupport.dll added to v1.5 of Android/VS > NHibernateSupport.RegenerateDatabase() fails if drop sql script exists > ---------------------------------------------------------------------- > > Key: ANDVS-2 > URL: http://jira.andromda.org/browse/ANDVS-2 > Project: Android/VS > Type: Bug > Environment: .NET, Android/VS, SchemaExport utility > Reporter: Mike Pagel > Assignee: Chris Micali > Attachments: DbSupport.cs, DbSupport.cs.patch > > Problem in short: Android/VS' SchemaExport is using NHibernateSupport. > Schemageneration works fine for the first time, but fails when done a second > time. Please see these posts for a detailed description: > http://galaxy.andromda.org/forum/viewtopic.php?t=3203 > http://galaxy.andromda.org/forum/viewtopic.php?t=3189 > This is an attempt to patch this problem. > What did I do: > ============== > Basically I reused to array approach already implemented for database > creation also in the drop case. I therefore refactored this functionality > into a separate method ExecuteSqlCommands(). > I also used File.ReadAll() and File.WriteAll() instead of the proprietary > implementations using a for loop. Note: the two functions are new in .NET > 2.0. Let me know whether this is a problem and I ubmit another patch without > this optimization. > For you convenience I attached two versions of the patch: (a) a unified > context patch file and (b) the actual file. > I was using revision 1.2 of DbSupport.cs. > Mike -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV