Menu

#61 [Perl]Method foreign_key_info can't support three parameters form

open
nobody
None
5
2012-01-12
2012-01-12
Jira Trac
No

Test Build:CUBRID 2008 R4.0 (8.4.0.2019) (64bit release build for linux_gnu)
OS: Linux 64
Description: Method foreign_key_info can't support three parameters form like foreign_key_info( undef, $user, 'master');

Repro Steps
perl foreign_2.pl

Statements in foreign_2.pl
{noformat}
$dbh-do(CREATE TABLE album(id CHAR(10) primary key,title VARCHAR(100), artist VARCHAR(100));) or die $dbh-errstr . : create error\n;
$dbh-do(CREATE TABLE track(album CHAR(10),dsk INTEGER,posn INTEGER, song VARCHAR(255),FOREIGN KEY (album) REFERENCES album(id));) or die $dbh-errstr . : create error\n;

my $sth=$dbh-foreign_key_info('','','album');# or die $dbh-errstr . :foreign_key error\n;
{noformat}

Actual result:
{noformat}

DBI foreign_key_info: invalid number of arguments: got handle + 3, expected handle + between 6 and 7
Usage: $h-foreign_key_info($pk_catalog, $pk_schema, $pk_table, $fk_catalog, $fk_schema, $fk_table [, \%attr ]) at foreign_2.pl line 23.

{noformat}

Expect result:
{noformat}
no error
{noformat}

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.