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
08bcedf0
Commit
08bcedf0
authored
Dec 26, 2011
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
c63c7838
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
108 deletions
+103
-108
Command.php
framework/db/dao/Command.php
+1
-1
Query.php
framework/db/dao/Query.php
+98
-107
QueryBuilder.php
framework/db/dao/QueryBuilder.php
+4
-0
No files found.
framework/db/dao/Command.php
View file @
08bcedf0
...
...
@@ -203,7 +203,7 @@ class Command extends \yii\base\Component
*/
public
function
bindValues
(
$values
)
{
if
(
$values
!==
array
(
))
{
if
(
!
empty
(
$values
))
{
$this
->
prepare
();
foreach
(
$values
as
$name
=>
$value
)
{
$this
->
pdoStatement
->
bindValue
(
$name
,
$value
,
$this
->
connection
->
getPdoType
(
gettype
(
$value
)));
...
...
framework/db/dao/Query.php
View file @
08bcedf0
This diff is collapsed.
Click to expand it.
framework/db/dao/QueryBuilder.php
View file @
08bcedf0
...
...
@@ -46,6 +46,10 @@ class QueryBuilder extends \yii\base\Object
*/
public
function
build
(
$query
)
{
if
(
$this
->
operation
!==
null
)
{
$method
=
array_shift
(
$this
->
operation
);
return
call_user_func_array
(
array
(
$this
,
$method
),
$this
->
operation
);
}
$clauses
=
array
(
$this
->
buildSelect
(
$query
),
$this
->
buildFrom
(
$query
),
...
...
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