Skip to content

Commit 09276f8

Browse files
committed
docs: break long line in sample code
1 parent cd4cc57 commit 09276f8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • user_guide_src/source/database/query_builder

user_guide_src/source/database/query_builder/115.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88
$additionalUpdateField = ['updated_at' => new RawSql('CURRENT_TIMESTAMP')];
99

10-
$sql = $builder->setQueryAsData($query)->onConstraint('email')->updateFields($additionalUpdateField, true)->upsertBatch();
10+
$sql = $builder->setQueryAsData($query)
11+
->onConstraint('email')
12+
->updateFields($additionalUpdateField, true)
13+
->upsertBatch();
1114
/* MySQLi produces:
1215
INSERT INTO `db_user` (`country`, `email`, `name`)
1316
SELECT user2.name, user2.email, user2.country

0 commit comments

Comments
 (0)