package SQL::Translator::Parser::DBI::SQLServer;
# -------------------------------------------------------------------
-# $Id: SQLServer.pm,v 1.3 2006-05-04 20:45:58 duality72 Exp $
+# $Id: SQLServer.pm,v 1.4 2006-08-26 11:37:18 schiffbruechige Exp $
# -------------------------------------------------------------------
# Copyright (C) 2002-4 SQLFairy Authors
#
use Data::Dumper;
use vars qw[ $DEBUG $VERSION @EXPORT_OK ];
-$VERSION = sprintf "%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/;
$DEBUG = 0 unless defined $DEBUG;
no strict 'refs';
if defined;
} @{$dbh->selectall_arrayref("SELECT DISTINCT object_name(id)
FROM sysindexes
- WHERE indid > 0 and indid < 255 and
+ WHERE indid > 0 and indid < 255 and rows > 0 and
name not like '_WA_Sys%'")};
## slurp objects
FROM syscomments c
JOIN sysobjects o
ON c.id = o.id
- WHERE o.type ='P'
+ WHERE o.type in ('P', 'FN', 'TF', 'IF')
}
);