Skip to content

Commit 0d84dc3

Browse files
committed
Fix SQL syntax error in 'import_full'
Applies the same fix as beaf485 to the remaining Git-based plugins as well as HgWeb. Fixes #221
1 parent beaf485 commit 0d84dc3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

SourceCgit/SourceCgit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function import_full( $p_repo ) {
175175
foreach( $t_branches as $t_branch ) {
176176
$t_query = "SELECT parent FROM $t_changeset_table
177177
WHERE repo_id=" . db_param() . ' AND branch=' . db_param() .
178-
'ORDER BY timestamp ASC';
178+
' ORDER BY timestamp ASC';
179179
$t_result = db_query( $t_query, array( $p_repo->id, $t_branch ), 1 );
180180

181181
$t_commits = array( $t_branch );

SourceGitphp/SourceGitphp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function import_full( $p_repo ) {
195195
foreach( $t_branches as $t_branch ) {
196196
$t_query = "SELECT parent FROM $t_changeset_table
197197
WHERE repo_id=" . db_param() . ' AND branch=' . db_param() .
198-
'ORDER BY timestamp ASC';
198+
' ORDER BY timestamp ASC';
199199
$t_result = db_query_bound( $t_query, array( $p_repo->id, $t_branch ), 1 );
200200

201201
$t_commits = array( $t_branch );

SourceGitweb/SourceGitweb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function import_full( $p_repo ) {
238238
foreach( $t_branches as $t_branch ) {
239239
$t_query = "SELECT parent FROM $t_changeset_table
240240
WHERE repo_id=" . db_param() . ' AND branch=' . db_param() .
241-
'ORDER BY timestamp ASC';
241+
' ORDER BY timestamp ASC';
242242
$t_result = db_query( $t_query, array( $p_repo->id, $t_branch ), 1 );
243243

244244
$t_commits = array( $t_branch );

SourceHgWeb/SourceHgWeb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function import_full( $p_repo ) {
168168
foreach( $t_branches as $t_branch ) {
169169
$t_query = "SELECT parent FROM $t_changeset_table
170170
WHERE repo_id=" . db_param() . ' AND branch=' . db_param() .
171-
'ORDER BY timestamp ASC';
171+
' ORDER BY timestamp ASC';
172172
$t_result = db_query( $t_query, array( $p_repo->id, $t_branch ), 1 );
173173

174174
$t_commits = array( $t_branch );

0 commit comments

Comments
 (0)