X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FSQL-Translator.git;a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FParser%2FXML%2FSQLFairy.pm;h=14d98b16b9525be7a4a2fd603174a08e834bef69;hp=5cc37d14467eb59052fdd5286de6aaaedd4c12ac;hb=c0ec0e22d3f0e3852c00daac5ef5763010b410c3;hpb=97d0d7788d2b9058b29fbe264f06e3979529c0c4 diff --git a/lib/SQL/Translator/Parser/XML/SQLFairy.pm b/lib/SQL/Translator/Parser/XML/SQLFairy.pm index 5cc37d1..14d98b1 100644 --- a/lib/SQL/Translator/Parser/XML/SQLFairy.pm +++ b/lib/SQL/Translator/Parser/XML/SQLFairy.pm @@ -43,10 +43,10 @@ tags then the order the tags appear in the XML will be used. =head2 default_value -Leave the attribute out all together to use the default in L. -Use empty quotes or 'EMPTY_STRING' for a zero lenth string. 'NULL' for an -explicit null (currently sets default_value to undef in the -Schema::Field obj). +Leave the attribute out all together to use the default in +L. Use empty quotes or 'EMPTY_STRING' +for a zero length string. 'NULL' for an explicit null (currently sets +default_value to undef in the field object). @@ -58,14 +58,14 @@ Doesn't take any extra parser args at the moment. =head1 LEGACY FORMAT -The previous version of the SQLFairy XML allowed the attributes of the the +The previous version of the SQLFairy XML allowed the attributes of the schema objects to be written as either xml attributes or as data elements, in any combination. While this allows for lots of flexibility in writing the XML the result is a great many possible XML formats, not so good for DTD writing, XPathing etc! So we have moved to a fixed version described in L. -This version of the parser will still parse the old formats and emmit warnings +This version of the parser will still parse the old formats and emit warnings when it sees them being used but they should be considered B. @@ -216,7 +216,7 @@ sub parse { foreach (@nodes) { my %data = get_tagfields($xp, $_, "sqlf:", qw/ name perform_action_when database_event database_events fields - on_table action order extra + on_table action order extra scope /); # back compat