We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10313fc commit 7071505Copy full SHA for 7071505
examples/describe.pl
@@ -98,14 +98,13 @@ sub usage {
98
$c->{TYPE}, $dd->{TYPE}[$c->{TYPE}], $cl;
99
}
100
else {
101
- $c->{PKEY} and @key = ();
102
printf " %-23s %-20s%s\t%s%s\n", $cn,
103
$dd->{TYPE}[$c->{TYPE}], $cl,
104
- $c->{NULLABLE} ? "" : " NOT NULL",
105
- $c->{PKEY} ? " PRIMARY KEY" : "";
+ $c->{NULLABLE} ? "" : " NOT NULL",
+ @key < 2 && $c->{PKEY} ? " PRIMARY KEY" : "";
106
$L and printf "%12s %s\n", "-->", $L;
107
108
109
- @key && !$opt_c and print " PRIMARY KEY (",
+ @key >= 2 && !$opt_c and print " PRIMARY KEY (",
110
join (", " => map { $dd->{COLUMN}[$_]{NAME} } @key), ")\n";
111
0 commit comments