Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
ci226
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 71dfe484
authored
May 05, 2019
by
irul
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add get_compile_select() to DB Active Record
1 parent
667faf43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
system/database/DB_active_rec.php
system/database/DB_active_rec.php
View file @
71dfe48
...
...
@@ -59,7 +59,7 @@ class CI_DB_active_record extends CI_DB_driver {
var
$ar_cache_having
=
array
();
var
$ar_cache_orderby
=
array
();
var
$ar_cache_set
=
array
();
var
$ar_no_escape
=
array
();
var
$ar_cache_no_escape
=
array
();
...
...
@@ -427,7 +427,7 @@ class CI_DB_active_record extends CI_DB_driver {
$v
=
' '
.
$this
->
escape
(
$v
);
}
if
(
!
$this
->
_has_operator
(
$k
))
{
$k
.=
' = '
;
...
...
@@ -661,7 +661,7 @@ class CI_DB_active_record extends CI_DB_driver {
$prefix
=
(
count
(
$this
->
ar_like
)
==
0
)
?
''
:
$type
;
$v
=
$this
->
escape_like_str
(
$v
);
if
(
$side
==
'none'
)
{
$like_statement
=
$prefix
.
"
$k
$not
LIKE '
{
$v
}
'"
;
...
...
@@ -1664,6 +1664,18 @@ class CI_DB_active_record extends CI_DB_driver {
// --------------------------------------------------------------------
/**
* Public Compile the SELECT statement
*
* @return string
*/
public
function
get_compile_select
(
$select_override
=
FALSE
)
{
return
$this
->
_compile_select
(
$select_override
);
}
// --------------------------------------------------------------------
/**
* Compile the SELECT statement
*
* Generates a query string based on which functions were used.
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment