Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 71352 Details for
Bug 110363
Out of memory errors with DBD-mysql-3.0002_p3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test script for retrieving data from mysql (actually a query from bugzilla)
test-mysql.pl (text/plain), 677 bytes, created by
Haroon Rafique
on 2005-10-24 12:35:14 UTC
(
hide
)
Description:
Test script for retrieving data from mysql (actually a query from bugzilla)
Filename:
MIME Type:
Creator:
Haroon Rafique
Created:
2005-10-24 12:35:14 UTC
Size:
677 bytes
patch
obsolete
>#!/usr/bin/perl -Tw > >use strict; >use DBI; >use DBD::mysql; > >my $dbh; > >eval { > $dbh = DBI->connect( > 'dbi:mysql:database=bugs', 'bugs', 'nothing', > { > RaiseError => 1, > PrintError => 0, > AutoCommit => 0, > }); >}; > # do not proceed any further if connection to database is > # unsuccessful >if( $@ ) { > die "Database connection failure: $@"; > exit; >} > >my( $data, $version ); >eval { > ( $data, $version ) = $dbh->selectrow_array(" > SELECT schema_data, version FROM bz_schema > "); >}; >if( $@ ) { > $dbh->disconnect; > die $@; >} >$dbh->disconnect; > >print 'Version: ', $version, "\n";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 110363
:
71351
| 71352 |
71353