package SQL::Translator::Parser::SQLServer;
# -------------------------------------------------------------------
-# $Id: SQLServer.pm,v 1.5 2007-03-14 17:03:52 duality72 Exp $
+# $Id: SQLServer.pm,v 1.6 2007-03-19 17:11:02 duality72 Exp $
# -------------------------------------------------------------------
# Copyright (C) 2002-4 SQLFairy Authors
#
use strict;
use vars qw[ $DEBUG $VERSION $GRAMMAR @EXPORT_OK ];
-$VERSION = sprintf "%d.%02d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%02d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/;
$DEBUG = 0 unless defined $DEBUG;
use Data::Dumper;
PROCEDURE : /procedure/i
| /function/i
-procedure_body : not_go(s)
-
create_view : /create/i /view/i WORD not_go GO
{
@table_comments = ();
$views{ $view_name }{'sql'} = $sql;
}
-view_body : not_go(s)
-
not_go : /((?!\bgo\b).)*/is
create_def : constraint