Skip to content

Commit e2c4a3b

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.3
2 parents ec81d88 + 39c336a commit e2c4a3b

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/scripts/deploy-appstarter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ git checkout master
2020
rm -rf *
2121

2222
# Copy common files
23-
releasable='app public writable env LICENSE spark'
23+
releasable='app public writable env LICENSE spark preload.php'
2424
for fff in $releasable;
2525
do
2626
cp -Rf ${SOURCE}/$fff ./

.github/scripts/deploy-framework

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ git checkout master
2020
rm -rf *
2121

2222
# Copy common files
23-
releasable='app public writable env LICENSE spark system'
23+
releasable='app public writable env LICENSE spark system preload.php'
2424
for fff in $releasable;
2525
do
2626
cp -Rf ${SOURCE}/$fff ./
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
* See https://www.php.net/manual/en/opcache.preloading.php
1717
*
1818
* How to Use:
19-
* 1. Set preload::$paths.
19+
* 0. Copy this file to your project root folder.
20+
* 1. Set the $paths property of the preload class below.
2021
* 2. Set opcache.preload in php.ini.
2122
* php.ini:
2223
* opcache.preload=/path/to/preload.php
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<?php
22

3-
$union = $this->db->table('users')->select('id', 'name');
4-
$builder = $this->db->table('users')->select('id', 'name');
5-
6-
$builder->union($union)->limit(10)->get();
3+
$builder = $db->table('users')->select('id, name')->limit(10);
4+
$union = $db->table('groups')->select('id, name');
5+
$builder->union($union)->get();
76
/*
87
* Produces:
98
* SELECT * FROM (SELECT `id`, `name` FROM `users` LIMIT 10) uwrp0
10-
* UNION SELECT * FROM (SELECT `id`, `name` FROM `users`) uwrp1
9+
* UNION SELECT * FROM (SELECT `id`, `name` FROM `groups`) uwrp1
1110
*/

user_guide_src/source/database/query_builder/104.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
$union = $this->db->table('users')->select('id', 'name')->orderBy('id', 'DESC')->limit(5);
4-
$builder = $this->db->table('users')->select('id', 'name')->orderBy('id', 'ASC')->limit(5)->union($union);
3+
$union = $db->table('users')->select('id, name')->orderBy('id', 'DESC')->limit(5);
4+
$builder = $db->table('users')->select('id, name')->orderBy('id', 'ASC')->limit(5)->union($union);
55

6-
$this->db->newQuery()->fromSubquery($builder, 'q')->orderBy('id', 'DESC')->get();
6+
$db->newQuery()->fromSubquery($builder, 'q')->orderBy('id', 'DESC')->get();
77
/*
88
* Produces:
99
* SELECT * FROM (

0 commit comments

Comments
 (0)