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
d2cb245d
Commit
d2cb245d
authored
Jul 11, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished sphinx support
parent
e67d0b3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
Command.php
extensions/sphinx/Command.php
+1
-1
Connection.php
extensions/sphinx/Connection.php
+0
-1
Schema.php
extensions/sphinx/Schema.php
+3
-4
No files found.
extensions/sphinx/Command.php
View file @
d2cb245d
...
...
@@ -191,7 +191,7 @@ class Command extends \yii\db\Command
* @param string $index the name of the index from which to take the text processing settings
* @param string $text the text to break down to keywords.
* @param boolean $fetchStatistic whether to return document and hit occurrence statistics
* @return st
ring the SQL statement for call keywords.
* @return st
atic the command object itself
*/
public
function
callKeywords
(
$index
,
$text
,
$fetchStatistic
=
false
)
{
...
...
extensions/sphinx/Connection.php
View file @
d2cb245d
...
...
@@ -109,7 +109,6 @@ class Connection extends \yii\db\Connection
*/
public
function
createCommand
(
$sql
=
null
,
$params
=
[])
{
$this
->
open
();
$command
=
new
Command
([
'db'
=>
$this
,
'sql'
=>
$sql
,
...
...
extensions/sphinx/Schema.php
View file @
d2cb245d
...
...
@@ -323,12 +323,11 @@ class Schema extends Object
*/
public
function
quoteValue
(
$str
)
{
if
(
!
is_string
(
$str
))
{
if
(
is_string
(
$str
))
{
return
$this
->
db
->
getReadPdo
()
->
quote
(
$str
);
}
else
{
return
$str
;
}
$this
->
db
->
open
();
return
$this
->
db
->
pdo
->
quote
(
$str
);
}
/**
...
...
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