| @@ 259-264 (lines=6) @@ | ||
| 256 | return -1; |
|
| 257 | } |
|
| 258 | ||
| 259 | if ($comment != '' && $this->hasSharedComments()) { |
|
| 260 | $status = $this->setComment('DATABASE', $database, '', $comment); |
|
| 261 | if ($status != 0) { |
|
| 262 | return -2; |
|
| 263 | } |
|
| 264 | } |
|
| 265 | ||
| 266 | return 0; |
|
| 267 | } |
|
| @@ 87-92 (lines=6) @@ | ||
| 84 | return -1; |
|
| 85 | } |
|
| 86 | ||
| 87 | if ($comment != '' && $this->hasSharedComments()) { |
|
| 88 | $status = $this->setComment('TABLESPACE', $spcname, '', $comment); |
|
| 89 | if ($status != 0) { |
|
| 90 | return -2; |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||
| 94 | return 0; |
|
| 95 | } |
|
| @@ 142-147 (lines=6) @@ | ||
| 139 | } |
|
| 140 | ||
| 141 | // Set comment if it has changed |
|
| 142 | if (trim($comment) != '' && $this->hasSharedComments()) { |
|
| 143 | $status = $this->setComment('TABLESPACE', $spcname, '', $comment); |
|
| 144 | if ($status != 0) { |
|
| 145 | return -4; |
|
| 146 | } |
|
| 147 | } |
|
| 148 | ||
| 149 | return $this->endTransaction(); |
|
| 150 | } |
|