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
5a587d16
Commit
5a587d16
authored
Jun 06, 2013
by
Gevik Babakhani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed several formatting issues.
Refactored == null to is_null == '' to empty(...)
parent
cceb5b11
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
PDO.php
framework/yii/db/pgsql/PDO.php
+5
-4
QueryBuilder.php
framework/yii/db/pgsql/QueryBuilder.php
+2
-1
Schema.php
framework/yii/db/pgsql/Schema.php
+2
-1
No files found.
framework/yii/db/pgsql/PDO.php
View file @
5a587d16
...
...
@@ -16,13 +16,14 @@ namespace yii\db\pgsql;
* @author Gevik babakhani <gevikb@gmail.com>
* @since 2.0
*/
class
PDO
extends
\PDO
{
class
PDO
extends
\PDO
{
const
OPT_SEARCH_PATH
=
'search_path'
;
const
OPT_DEFAULT_SCHEMA
=
'default_schema'
;
const
DEFAULT_SCHEMA
=
'public'
;
private
$_currentDatabase
=
null
;
private
$_currentDatabase
;
/**
* Returns value of the last inserted ID.
...
...
@@ -53,11 +54,11 @@ class PDO extends \PDO {
}
if
(
isset
(
$options
[
self
::
OPT_DEFAULT_SCHEMA
]))
{
$schema
=
trim
(
$options
[
self
::
OPT_DEFAULT_SCHEMA
]);
if
(
$schema
!==
''
)
{
if
(
!
empty
(
$schema
)
)
{
Schema
::
$DEFAULT_SCHEMA
=
$schema
;
}
}
if
(
Schema
::
$DEFAULT_SCHEMA
===
null
||
Schema
::
$DEFAULT_SCHEMA
===
''
)
{
if
(
is_null
(
Schema
::
$DEFAULT_SCHEMA
)
||
empty
(
Schema
::
$DEFAULT_SCHEMA
)
)
{
Schema
::
$DEFAULT_SCHEMA
=
self
::
DEFAULT_SCHEMA
;
}
}
...
...
framework/yii/db/pgsql/QueryBuilder.php
View file @
5a587d16
...
...
@@ -14,7 +14,8 @@ namespace yii\db\pgsql;
* @author Gevik Babakhani <gevikb@gmail.com>
* @since 2.0
*/
class
QueryBuilder
extends
\yii\db\QueryBuilder
{
class
QueryBuilder
extends
\yii\db\QueryBuilder
{
/**
* @var array mapping from abstract column types (keys) to physical column types (values).
...
...
framework/yii/db/pgsql/Schema.php
View file @
5a587d16
...
...
@@ -18,7 +18,8 @@ use yii\db\ColumnSchema;
* @author Gevik Babakhani <gevikb@gmail.com>
* @since 2.0
*/
class
Schema
extends
\yii\db\Schema
{
class
Schema
extends
\yii\db\Schema
{
/**
* The default schema used for the current session. This value is
...
...
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