Skip to content

Commit 6c7f45e

Browse files
committed
Return the base expression for non record elements in VALUES of an INSERT.
1 parent a07838c commit 6c7f45e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PHPSQLParser/builders/RecordBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected function buildColRef($parsed) {
7575

7676
public function build(array $parsed) {
7777
if ($parsed['expr_type'] !== ExpressionType::RECORD) {
78-
return "";
78+
return isset($parsed['base_expr']) ? $parsed['base_expr'] : '';
7979
}
8080
$sql = "";
8181
foreach ($parsed['data'] as $k => $v) {

0 commit comments

Comments
 (0)