ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-DBI/DBI.pm
(Generate patch)

Comparing AnyEvent-DBI/DBI.pm (file contents):
Revision 1.15 by root, Thu May 17 02:15:58 2012 UTC vs.
Revision 1.16 by root, Tue Apr 2 02:13:13 2013 UTC

71 71
72use Errno (); 72use Errno ();
73use Fcntl (); 73use Fcntl ();
74use POSIX (); 74use POSIX ();
75 75
76our $VERSION = '2.2'; 76our $VERSION = '2.3';
77 77
78our $FD_MAX = eval { POSIX::sysconf (&POSIX::_SC_OPEN_MAX) - 1 } || 1023; 78our $FD_MAX = eval { POSIX::sysconf (&POSIX::_SC_OPEN_MAX) - 1 } || 1023;
79 79
80# this is the forked server code, could/should be bundled as it's own file 80# this is the forked server code, could/should be bundled as it's own file
81 81
108 108
109 [1, $DBH->{$attr_name}] 109 [1, $DBH->{$attr_name}]
110} 110}
111 111
112sub req_begin_work { 112sub req_begin_work {
113 [1, $DBH->begin_work or die [$DBI::errstr]] 113 [1, $DBH->begin_work || die [$DBI::errstr]]
114} 114}
115 115
116sub req_commit { 116sub req_commit {
117 [1, $DBH->commit or die [$DBI::errstr]] 117 [1, $DBH->commit || die [$DBI::errstr]]
118} 118}
119 119
120sub req_rollback { 120sub req_rollback {
121 [1, $DBH->rollback or die [$DBI::errstr]] 121 [1, $DBH->rollback || die [$DBI::errstr]]
122} 122}
123 123
124sub req_func { 124sub req_func {
125 my (undef, $arg_string, $function) = @{+shift}; 125 my (undef, $arg_string, $function) = @{+shift};
126 my @args = eval $arg_string; 126 my @args = eval $arg_string;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines