| @@ 48-55 (lines=8) @@ | ||
| 45 | * |
|
| 46 | * @see ConverterInterface |
|
| 47 | */ |
|
| 48 | public function toPg($data, $type, Session $session) |
|
| 49 | { |
|
| 50 | return |
|
| 51 | $data !== null |
|
| 52 | ? sprintf("ltree '%s'", join('.', $this->checkArray($data))) |
|
| 53 | : sprintf("NULL::%s", $type) |
|
| 54 | ; |
|
| 55 | } |
|
| 56 | ||
| 57 | ||
| 58 | /** |
|
| @@ 63-70 (lines=8) @@ | ||
| 60 | * |
|
| 61 | * @see ConverterInterface |
|
| 62 | */ |
|
| 63 | public function toPgStandardFormat($data, $type, Session $session) |
|
| 64 | { |
|
| 65 | return |
|
| 66 | $data !== null |
|
| 67 | ? sprintf("%s", join('.', $this->checkArray($data))) |
|
| 68 | : null |
|
| 69 | ; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | ||