~mordred/ndb-bindings/resultsets

« back to all changes in this revision

Viewing changes to perl/test.pl

  • Committer: Monty Taylor
  • Date: 2007-04-15 08:50:19 UTC
  • Revision ID: monty@inaugust.com-20070415085019-ahp4z78womyxxwpo
Moved perl modules into mysql::cluster:: package to match other languages.
Renamed main mgmapi.i to Mgm.i for ease of inclusion. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
use lib 'blib';
21
21
use lib 'blib/lib';
22
22
 
23
 
use ndbapi;
 
23
use mysql::cluster::ndbapi;
24
24
use DBI;
25
25
use POSIX qw( ceil floor );
26
26
use Time::HiRes qw( gettimeofday tv_interval );
52
52
 
53
53
print "connecting to cluster\n";
54
54
 
55
 
$connection = new ndbapi::Ndb_cluster_connection();
 
55
$connection = new mysql::cluster::ndbapi::Ndb_cluster_connection();
56
56
 
57
57
 
58
58
if ($connection->connect(5,3,1)) {
67
67
    exit -1;
68
68
} else { print "cluster ready\n"; }
69
69
 
70
 
$myNdb = new ndbapi::Ndb($connection,"test");
 
70
$myNdb = new mysql::cluster::ndbapi::Ndb($connection,"test");
71
71
 
72
72
 
73
73
if ($myNdb->init(4) == -1) {