--- /dev/null
+MySQL parser chokes on DEFAULT x NOT NULL, but works with NOT NULL DEFAULT x
+MySQL parser chokes on FULLTEXT index creation.
--- /dev/null
+Define structure of the data returned by parsers:
+ o Producers need to know what to expect
+ o For testing purposes, we need to know if parsers are returning
+ something reasonable
+
+cvs rm t/data/mysql/Apache-Session-MySQL.sql
+cvs add TODO
+cvs add t/01load.t
--- /dev/null
+#!/usr/bin/perl
+# vim: set ft=perl:
+#
+# This test attempts to load every .pm file in MANIFEST.
+# It might be naive.
+#
+
+my @perlmods;
+my $count = 0;
+
+unless (open MANIFH, "MANIFEST") {
+ print "1..1\n";
+ print "not ok 1\n";
+ exit;
+}
+while (<MANIFH>) {
+ chomp;
+ if (s/\.pm$//) {
+ s,/,::,g;
+ s/^lib:://;
+ push @perlmods, $_
+ }
+}
+
+print "1.." . scalar @perlmods . "\n";
+
+close MANIFH;
+
+for my $mod (@perlmods) {
+ $count++;
+ $mod =~ s,/,::,g;
+ eval "use $mod;";
+ print "not " if ($@);
+ print "ok $count # $mod\n";
+}
+
--- /dev/null
+#!/usr/bin/perl
+# vim: set ft=perl:
+#
+
+use strict;
+use Data::Dumper;
+use SQL::Translator;
+use SQL::Translator::Parser::MySQL qw(parse);
+
+$SQL::Translator::DEBUG = 0;
+
+my $tr = SQL::Translator->new;
+
+my $datafile = "t/data/mysql/BGEP-RE-create.sql";
+my $data;
+open FH, $datafile or die "Can't open $datafile: $!";
+read(FH, $data, -s $datafile);
+close FH;
+
+print "Data is ", length $data, " bytes\n";
+#print $data;
+
+my $val = parse($tr, $data);
+print Dumper($val);
+++ /dev/null
-# Taken from Apache::Session::MySQL
-CREATE TABLE sessions (
- id char(32) not null primary key,
- a_session text
-);
-