~ubuntu-branches/ubuntu/vivid/drizzle/vivid

« back to all changes in this revision

Viewing changes to tests/test_tools/randgen/lib/GenTest/SimPipe/Oracle.pm

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-10-29 15:43:40 UTC
  • mfrom: (20.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131029154340-j36v7gxq9tm1gi5f
Tags: 1:7.2.3-2ubuntu1
* Merge from debian, remaining changes:
  - Link against boost_system because of boost_thread.
  - Add required libs to message/include.am
  - Add upstart job and adjust init script to be upstart compatible.
  - Disable -floop-parallelize-all due to gcc-4.8/4.9 compiler ICE
    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57732

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# This program is free software; you can redistribute it and/or modify
 
3
# it under the terms of the GNU General Public License as published by
 
4
# the Free Software Foundation; version 2 of the License.
 
5
#
 
6
# This program is distributed in the hope that it will be useful, but
 
7
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
8
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
9
# General Public License for more details.
 
10
#
 
11
# You should have received a copy of the GNU General Public License
 
12
# along with this program; if not, write to the Free Software
 
13
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
 
14
# USA
 
15
#
 
16
 
 
17
package GenTest::SimPipe::Oracle;
 
18
 
 
19
require Exporter;
 
20
@ISA = qw(GenTest);
 
21
@EXPORT = qw();
 
22
 
 
23
use strict;
 
24
use DBI;
 
25
use GenTest;
 
26
 
 
27
use constant ORACLE_DSN         => 0;
 
28
use constant ORACLE_DSN2        => 1;
 
29
use constant ORACLE_BASEDIR     => 2;
 
30
 
 
31
1;
 
32
 
 
33
sub new {
 
34
        my $class = shift;
 
35
 
 
36
        my $oracle = $class->SUPER::new({
 
37
                'dsn' => ORACLE_DSN,
 
38
                'dsn2' => ORACLE_DSN2,
 
39
                'basedir' => ORACLE_BASEDIR
 
40
        }, @_);
 
41
        
 
42
        return $oracle;
 
43
}
 
44
 
 
45
sub dsn {
 
46
        return $_[0]->[ORACLE_DSN];
 
47
}
 
48
 
 
49
sub dsn2 {
 
50
        return $_[0]->[ORACLE_DSN2];
 
51
}
 
52
 
 
53
sub basedir {
 
54
        return $_[0]->[ORACLE_BASEDIR];
 
55
}