Skip to content

Commit af952b3

Browse files
committed
Remove "experimental" tag from statistics_info () (issue#134)
1 parent 87e6c73 commit af952b3

9 files changed

+46
-37
lines changed

Changes

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1.646 - 2024-09-19, H.Merijn Brand
2+
* Remove "experimental" tag from statistics_info () (issue#134)
3+
14
1.645 - 2024-09-03, H.Merijn Brand
25

36
* Move developer tests to xt/

DBI.pm

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use warnings;
1515

1616
our ($XS_VERSION, $VERSION);
1717
BEGIN {
18-
$VERSION = "1.645"; # ==> ALSO update the version in the pod text below!
18+
$VERSION = "1.646"; # ==> ALSO update the version in the pod text below!
1919
$XS_VERSION = $VERSION;
2020
$VERSION =~ tr/_//d;
2121
}
@@ -147,7 +147,7 @@ sure that your issue isn't related to the driver you're using.
147147
148148
=head2 NOTES
149149
150-
This is the DBI specification that corresponds to DBI version 1.645
150+
This is the DBI specification that corresponds to DBI version 1.646
151151
(see L<DBI::Changes> for details).
152152
153153
The DBI is evolving at a steady pace, so it's good to check that
@@ -5438,8 +5438,6 @@ See also L</"Catalog Methods"> and L</"Standards Reference Information">.
54385438
54395439
=head3 C<statistics_info>
54405440
5441-
B<Warning:> This method is experimental and may change.
5442-
54435441
$sth = $dbh->statistics_info( $catalog, $schema, $table, $unique_only, $quick );
54445442
54455443
# then $sth->fetchall_arrayref or $sth->fetchall_hashref etc

doc/DBI.3

+2-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
.\" ========================================================================
5959
.\"
6060
.IX Title "DBI 3"
61-
.TH DBI 3 2024-09-03 "perl v5.40.0" "User Contributed Perl Documentation"
61+
.TH DBI 3 2024-09-19 "perl v5.40.0" "User Contributed Perl Documentation"
6262
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
6363
.\" way too many mistakes in technical documents.
6464
.if n .ad l
@@ -190,7 +190,7 @@ page for your driver. Only submit a bug report against the DBI itself if you\*(A
190190
sure that your issue isn\*(Aqt related to the driver you\*(Aqre using.
191191
.SS NOTES
192192
.IX Subsection "NOTES"
193-
This is the DBI specification that corresponds to DBI version 1.644
193+
This is the DBI specification that corresponds to DBI version 1.646
194194
(see DBI::Changes for details).
195195
.PP
196196
The DBI is evolving at a steady pace, so it\*(Aqs good to check that
@@ -3838,8 +3838,6 @@ See also "Catalog Methods" and "Standards Reference Information".
38383838
\fR\f(CI\*(C`statistics_info\*(C'\fR\fI\fR
38393839
.IX Subsection "statistics_info"
38403840
.PP
3841-
\&\fBWarning:\fR This method is experimental and may change.
3842-
.PP
38433841
.Vb 1
38443842
\& $sth = $dbh\->statistics_info( $catalog, $schema, $table, $unique_only, $quick );
38453843
\&

doc/DBI.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ <h3 id="Reporting-a-Bug">Reporting a Bug</h3>
422422

423423
<h2 id="NOTES">NOTES</h2>
424424

425-
<p>This is the DBI specification that corresponds to DBI version 1.644 (see <a>DBI::Changes</a> for details).</p>
425+
<p>This is the DBI specification that corresponds to DBI version 1.646 (see <a>DBI::Changes</a> for details).</p>
426426

427427
<p>The DBI is evolving at a steady pace, so it&#39;s good to check that you have the latest copy.</p>
428428

@@ -2604,8 +2604,6 @@ <h3 id="foreign_key_info"><code>foreign_key_info</code></h3>
26042604

26052605
<h3 id="statistics_info"><code>statistics_info</code></h3>
26062606

2607-
<p><b>Warning:</b> This method is experimental and may change.</p>
2608-
26092607
<pre><code>$sth = $dbh-&gt;statistics_info( $catalog, $schema, $table, $unique_only, $quick );
26102608

26112609
# then $sth-&gt;fetchall_arrayref or $sth-&gt;fetchall_hashref etc</code></pre>

doc/DBI.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ sure that your issue isn't related to the driver you're using.
126126

127127
## NOTES
128128

129-
This is the DBI specification that corresponds to DBI version 1.644
129+
This is the DBI specification that corresponds to DBI version 1.646
130130
(see [DBI::Changes](https://metacpan.org/pod/DBI%3A%3AChanges) for details).
131131

132132
The DBI is evolving at a steady pace, so it's good to check that
@@ -3389,8 +3389,6 @@ See also ["Catalog Methods"](#catalog-methods) and ["Standards Reference Informa
33893389

33903390
### `statistics_info`
33913391

3392-
**Warning:** This method is experimental and may change.
3393-
33943392
$sth = $dbh->statistics_info( $catalog, $schema, $table, $unique_only, $quick );
33953393

33963394
# then $sth->fetchall_arrayref or $sth->fetchall_hashref etc

doc/DBI::Changes.3

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ Move developer tests to xt/
7373
Make Changes match CPAN::Changes::Spec and regen DBI::Changes from that
7474
.IP \(bu 2
7575
Fixes for modern gcc i.c.w. recent perl (Daniël)
76+
.IP \(bu 2
77+
Small code & doc cleanups for recent perl
78+
.IP \(bu 2
79+
See TODO in \`perldoc DBI\` to see where you can help with documentation!
7680
.SS "Changes in DBI 1.644 \- 23 Aug 2024"
7781
.IX Subsection "Changes in DBI 1.644 - 23 Aug 2024"
7882
.Vb 10

doc/DBI::Changes.html

+6
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ <h2 id="Changes-in-DBI-1.645---03-Sep-2024">Changes in DBI 1.645 - 03 Sep 2024</
172172
</li>
173173
<li><p>Fixes for modern gcc i.c.w. recent perl (Dani&euml;l)</p>
174174

175+
</li>
176+
<li><p>Small code &amp; doc cleanups for recent perl</p>
177+
178+
</li>
179+
<li><p>See TODO in `perldoc DBI` to see where you can help with documentation!</p>
180+
175181
</li>
176182
</ul>
177183

doc/DBI::Changes.md

+14-12
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ DBI::Changes - List of significant changes to the DBI
66

77
- Move developer tests to xt/
88
- Make Changes match CPAN::Changes::Spec and regen DBI::Changes from that
9-
- Fixes for modern gcc i.c.w. recent perl (Daniël)
9+
- Fixes for modern gcc i.c.w. recent perl (Daniël)
10+
- Small code & doc cleanups for recent perl
11+
- See TODO in \`perldoc DBI\` to see where you can help with documentation!
1012

1113
## Changes in DBI 1.644 - 23 Aug 2024
1214

@@ -15,9 +17,9 @@ DBI::Changes - List of significant changes to the DBI
1517
Fix CVE-2014-10401 and CVE-2014-10402 - f_dir might not exist in DBD::File connections
1618
thanks to Jens Rehsack & H.Merijn Brand
1719
Do not check gccversion on clang
18-
thanks to Daniël van Eeden
20+
thanks to Daniël van Eeden
1921
Upgrade GIMME to GIMME_V
20-
thanks to Daniël van Eeden
22+
thanks to Daniël van Eeden
2123
Do not check with JSON::XS with perl-5.022 and later
2224
thanks to H.Merijn Brand
2325
Makefile.PL allows gcc-10 and up now
@@ -39,11 +41,11 @@ DBI::Changes - List of significant changes to the DBI
3941
Fix potentially calling newSV(0) in malloc_using_sv()
4042
thanks to Pali
4143
Fix order of XS preparse() ps_accept and ps_return argument names
42-
thanks to Petr Písař
44+
thanks to Petr Písař
4345
Fix a potential NULL profile dereference in dbi_profile()
44-
thanks to Petr Písař
46+
thanks to Petr Písař
4547
Fix a buffer overflow on an overlong DBD class name
46-
thanks to Petr Písař
48+
thanks to Petr Písař
4749

4850
Remove remnants of support for perl <= v5.8.0
4951
thanks to Pali and H.Merijn Brand
@@ -233,7 +235,7 @@ which was made possible by the generosity of many sponsors:
233235
Changed $sth->{TYPE} to be NUMERIC in DBD::File drivers as per the
234236
DBI docs. Note TYPE_NAME is now also available. [H.Merijn Brand]
235237
Fixed compilation error on bleadperl due DEFSV no longer being an lvalue
236-
[Dagfinn Ilmari Mannsåker]
238+
[Dagfinn Ilmari Mannsåker]
237239

238240
Added docs for escaping placeholders using a backslash.
239241
Added docs for get_info(9000) indicating ability to escape placeholders.
@@ -323,7 +325,7 @@ There was no DBI 1.629 release.
323325
Change DBI's docs to refer to git not svn [H.Merijn Brand]
324326
Clarify bind_col TYPE attribute is sticky [Martin J. Evans]
325327
Fixed reference to $sth in selectall_arrayref docs RT#84873
326-
Spelling fixes [Ville Skyttä]
328+
Spelling fixes [Ville Skyttä]
327329
Changed $VERSIONs to hardcoded strings [H.Merijn Brand]
328330

329331
## Changes in DBI 1.627 - 16 May 2013
@@ -425,9 +427,9 @@ There was no DBI 1.629 release.
425427
Optimized driver access to handle data thanks to Dave Mitchell.
426428
Dave's work on these optimizations was sponsored by Booking.com.
427429
Optimized fetchall_arrayref with hash slice thanks
428-
to Dagfinn Ilmari Mannsåker. RT#76520
430+
to Dagfinn Ilmari Mannsåker. RT#76520
429431
Allow renaming columns in fetchall_arrayref hash slices
430-
thanks to Dagfinn Ilmari Mannsåker. RT#76572
432+
thanks to Dagfinn Ilmari Mannsåker. RT#76572
431433
Reserved snmp_ and tree_ for DBD::SNMP and DBD::TreeData
432434

433435
## Changes in DBI 1.618 (svn rev 15170) - 25 Feb 2012
@@ -475,7 +477,7 @@ There was no DBI 1.629 release.
475477
Added some more fetchall_arrayref(..., $maxrows) tests (Tim Bunce)
476478
Clarified docs for fetchall_arrayref called on an inactive handle.
477479
Clarified docs for clone method (Tim Bunce)
478-
Added note to DBI::Profile about async queries (Marcel Grünauer).
480+
Added note to DBI::Profile about async queries (Marcel Grünauer).
479481
Reserved spatialite_ as a driver prefix for DBD::Spatialite
480482
Reserved mo_ as a driver prefix for DBD::MO
481483
Updated link to the SQL Reunion 95 docs, RT69577 (Ash Daminato)
@@ -1106,7 +1108,7 @@ Jens Rehsack, Martin J. Evans, and H.Merijn Brand for all their contributions.
11061108

11071109
Fixed DBI::ProxyServer to not create pid files by default.
11081110
References: Ubuntu Security Notice USN-70-1, CAN-2005-0077
1109-
Thanks to Javier Fernández-Sanguino Peña from the
1111+
Thanks to Javier Fernández-Sanguino Peña from the
11101112
Debian Security Audit Project, and Jonathan Leffler.
11111113
Fixed some tests to work with older Test::More versions.
11121114
Fixed setting $DBI::err/errstr in DBI::PurePerl.

make-doc.pl

+13-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use 5.040000;
44
use warnings;
55

6-
our $VERSION = "0.02 - 20240825";
6+
our $VERSION = "0.03 - 20240904";
77
our $CMD = $0 =~ s{.*/}{}r;
88

99
sub usage {
@@ -21,11 +21,14 @@ sub usage {
2121
"v|verbose:1" => \(my $opt_v = 0),
2222
) or usage (1);
2323

24+
-d "doc" or mkdir "doc", 0775;
25+
2426
my @pm = sort "DBI.pm",
2527
(glob "lib/*/*.pm"),
2628
(glob "lib/*/*/*.pm"),
2729
(glob "lib/*/*/*/*.pm");
2830

31+
my %enc;
2932
eval { require Pod::Checker; };
3033
if ($@) {
3134
warn "Cannot convert pod to markdown: $@\n";
@@ -34,8 +37,10 @@ sub usage {
3437
my $fail = 0;
3538
foreach my $pm (@pm) {
3639
open my $eh, ">", \my $err;
37-
my $ok = Pod::Checker->new ()->parse_from_file ($pm, $eh);
40+
my $pc = Pod::Checker->new ();
41+
my $ok = $pc->parse_from_file ($pm, $eh);
3842
close $eh;
43+
$enc{$pm} = $pc->{encoding};
3944
$err && $err =~ m/\S/ or next;
4045
if ($pm eq "lib/DBI/ProfileData.pm") {
4146
# DBI::Profile has 7 warnings on empty previous paragraphs
@@ -59,17 +64,13 @@ sub usage {
5964
foreach my $pm (@pm) {
6065
my $md = $pm =~ s{^lib/}{}r =~ s{/}{::}gr =~ s{\.pm$}{.md}r =~ s{^}{doc/}r;
6166
printf STDERR "%-43s <- %s\n", $md, $pm if $opt_v;
62-
open my $ph, "<:bytes", $pm;
63-
open my $mh, ">:bytes", \my $m;
67+
my $enc = $enc{$pm} ? "encoding($enc{$pm})" : "bytes";
68+
say "$pm ($enc)" if $opt_v > 1;
69+
open my $ph, "<:$enc", $pm;
6470
my $p = Pod::Markdown->new ();
65-
my @w;
66-
{ local $SIG{__WARN__} = sub { push @w => $_ };
67-
$p->output_fh ($mh);
68-
$p->parse_file ($ph);
69-
}
70-
warn $_ for grep { length and ! m/^Wide character in print/ } @w;
71+
$p->output_string (\my $m);
72+
$p->parse_file ($ph);
7173
close $ph;
72-
close $mh;
7374

7475
$m && $m =~ m/\S/ or next;
7576
if (open my $old, "<:encoding(utf-8)", $md) {
@@ -106,6 +107,7 @@ sub usage {
106107
print $oh $h;
107108
close $oh;
108109
}
110+
unlink "pod2htmd.tmp";
109111
}
110112

111113
eval { require Pod::Man; };

0 commit comments

Comments
 (0)