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 667faf43
authored
May 05, 2019
by
irul
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug fix: Remove cheking version for postgresql < 9.0
1 parent
e7853e89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
system/database/drivers/postgre/postgre_driver.php
system/database/drivers/postgre/postgre_driver.php
View file @
667faf4
...
@@ -333,11 +333,11 @@ class CI_DB_postgre_driver extends CI_DB {
...
@@ -333,11 +333,11 @@ class CI_DB_postgre_driver extends CI_DB {
$table
=
func_num_args
()
>
0
?
func_get_arg
(
0
)
:
NULL
;
$table
=
func_num_args
()
>
0
?
func_get_arg
(
0
)
:
NULL
;
$column
=
func_num_args
()
>
1
?
func_get_arg
(
1
)
:
NULL
;
$column
=
func_num_args
()
>
1
?
func_get_arg
(
1
)
:
NULL
;
if
(
$table
==
NULL
&&
$v
>=
'8.1'
)
if
(
$table
==
NULL
)
{
{
$sql
=
'SELECT LASTVAL() as ins_id'
;
$sql
=
'SELECT LASTVAL() as ins_id'
;
}
}
elseif
(
$table
!=
NULL
&&
$column
!=
NULL
&&
$v
>=
'8.0'
)
elseif
(
$table
!=
NULL
&&
$column
!=
NULL
)
{
{
$sql
=
sprintf
(
"SELECT pg_get_serial_sequence('%s','%s') as seq"
,
$table
,
$column
);
$sql
=
sprintf
(
"SELECT pg_get_serial_sequence('%s','%s') as seq"
,
$table
,
$column
);
$query
=
$this
->
query
(
$sql
);
$query
=
$this
->
query
(
$sql
);
...
...
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