MSSQL/Storage/Sybase/DateTime/Format.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« MSSQL/Storage/Sybase.pm ↑ Summary MSSQL/Storage/Sybase/NoBindVars.pm »
1 package DBIO::MSSQL::Storage::Sybase::DateTime::Format;
2 # ABSTRACT: DateTime parser for MSSQL via DBD::Sybase
3  
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use base 'DBIO::Storage::DateTimeFormat';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 # Asymmetric: DBD::Sybase with syb_date_fmt('ISO_strict') emits ISO on read,
10 # but MSSQL wants a plain datetime literal on write. No preferred_format_class:
11 # DateTime::Format::MSSQL is mdy-based and does not round-trip with ISO_strict.
12 2 __PACKAGE__->datetime_parse_pattern('%Y-%m-%dT%H:%M:%S.%3NZ');
13 2 __PACKAGE__->datetime_format_pattern('%Y-%m-%d %H:%M:%S.%3N'); # %F %T
14  
15 2 1;
16  
17 __END__
18  
19 =pod
20  
21 =encoding UTF-8
22  
23 =head1 NAME
24  
25 DBIO::MSSQL::Storage::Sybase::DateTime::Format - DateTime parser for MSSQL via DBD::Sybase
26  
27 =head1 VERSION
28  
29 version 0.900001
30  
31 =head1 AUTHOR
32  
33 DBIO & DBIx::Class Authors
34  
35 =head1 COPYRIGHT AND LICENSE
36  
37 Copyright (C) 2026 DBIO Authors
38 Portions Copyright (C) 2005-2025 DBIx::Class Authors
39 Based on DBIx::Class, heavily modified.
40  
41 This is free software; you can redistribute it and/or modify it under
42 the same terms as the Perl 5 programming language system itself.
43  
44 =cut
« MSSQL/Storage/Sybase.pm ↑ Summary MSSQL/Storage/Sybase/NoBindVars.pm »