Less fussy about location of CREATE in stored proc definitions now.release-0.4.1
commit4af617ab257f154176f81e23ebc83cf34212faaf
authorTim Abell <tim@timwise.co.uk>
Tue, 30 Nov 2010 14:08:06 +0000 (30 14:08 +0000)
committerTim Abell <tim@timwise.co.uk>
Tue, 30 Nov 2010 14:08:06 +0000 (30 14:08 +0000)
tree947a8e7f48444e89ed0e946f28304fc0d4fddb47
parentc672f4b978c8d0de4359278b407037651a30b0b5
Less fussy about location of CREATE in stored proc definitions now.

Turns out sql server will store the whole batch sql used to create an
sp in the definition, including comments preceding the CREATE block.
Us such I've made it just replace the first create it finds. Note that if
someone writes "CREATE" in a comment before the real thing, then only that
will be replaced with alter.

Lots more debug output.
src/net/sourceforge/schemaspy/SchemaMapper.java
src/net/sourceforge/schemaspy/db/read/DbReader.java
src/net/sourceforge/schemaspy/db/read/TableReader.java
src/net/sourceforge/schemaspy/db/write/DbWriter.java