Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
2febbebb
Commit
2febbebb
authored
Dec 17, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed params in Query to allow execution twice
fixes #1545
parent
d6866256
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
ActiveQuery.php
framework/yii/db/ActiveQuery.php
+2
-3
No files found.
framework/CHANGELOG.md
View file @
2febbebb
...
...
@@ -8,6 +8,7 @@ Yii Framework 2 Change Log
-
Bug #1497: Localized view files are not correctly returned (mintao)
-
Bug #1500: Log messages exported to files are not separated by newlines (omnilight, qiangxue)
-
Bug #1509: The SQL for creating Postgres RBAC tables is incorrect (qiangxue)
-
Bug #1545: It was not possible to execute db Query twice, params where missing (cebe)
-
Bug: Fixed
`Call to a member function registerAssetFiles() on a non-object`
in case of wrong
`sourcePath`
for an asset bundle (samdark)
-
Bug: Fixed incorrect event name for
`yii\jui\Spinner`
(samdark)
-
Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
...
...
framework/yii/db/ActiveQuery.php
View file @
2febbebb
...
...
@@ -122,7 +122,6 @@ class ActiveQuery extends Query implements ActiveQueryInterface
$db
=
$modelClass
::
getDb
();
}
$params
=
$this
->
params
;
if
(
$this
->
sql
===
null
)
{
if
(
$this
->
from
===
null
)
{
$tableName
=
$modelClass
::
tableName
();
...
...
@@ -131,8 +130,8 @@ class ActiveQuery extends Query implements ActiveQueryInterface
}
$this
->
from
=
[
$tableName
];
}
list
(
$this
->
sql
,
$params
)
=
$db
->
getQueryBuilder
()
->
build
(
$this
);
list
(
$this
->
sql
,
$
this
->
params
)
=
$db
->
getQueryBuilder
()
->
build
(
$this
);
}
return
$db
->
createCommand
(
$this
->
sql
,
$params
);
return
$db
->
createCommand
(
$this
->
sql
,
$
this
->
params
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment