Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Tomáš Trávníček
doctrine-dbal
Commits
b1df27b1
Commit
b1df27b1
authored
Jan 10, 2008
by
lsmith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- use sql standard concat syntax instead of registering concat() mysql hack
parent
658f73f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
13 deletions
+0
-13
Sqlite.php
lib/Doctrine/Connection/Sqlite.php
+0
-2
Sqlite.php
lib/Doctrine/Expression/Sqlite.php
+0
-11
No files found.
lib/Doctrine/Connection/Sqlite.php
View file @
b1df27b1
...
@@ -71,7 +71,6 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
...
@@ -71,7 +71,6 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
if
(
$this
->
isConnected
)
{
if
(
$this
->
isConnected
)
{
$this
->
dbh
->
sqliteCreateFunction
(
'mod'
,
array
(
'Doctrine_Expression_Sqlite'
,
'modImpl'
),
2
);
$this
->
dbh
->
sqliteCreateFunction
(
'mod'
,
array
(
'Doctrine_Expression_Sqlite'
,
'modImpl'
),
2
);
$this
->
dbh
->
sqliteCreateFunction
(
'concat'
,
array
(
'Doctrine_Expression_Sqlite'
,
'concatImpl'
));
$this
->
dbh
->
sqliteCreateFunction
(
'md5'
,
'md5'
,
1
);
$this
->
dbh
->
sqliteCreateFunction
(
'md5'
,
'md5'
,
1
);
$this
->
dbh
->
sqliteCreateFunction
(
'now'
,
'time'
,
0
);
$this
->
dbh
->
sqliteCreateFunction
(
'now'
,
'time'
,
0
);
}
}
...
@@ -92,7 +91,6 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
...
@@ -92,7 +91,6 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
parent
::
connect
();
parent
::
connect
();
$this
->
dbh
->
sqliteCreateFunction
(
'mod'
,
array
(
'Doctrine_Expression_Sqlite'
,
'modImpl'
),
2
);
$this
->
dbh
->
sqliteCreateFunction
(
'mod'
,
array
(
'Doctrine_Expression_Sqlite'
,
'modImpl'
),
2
);
$this
->
dbh
->
sqliteCreateFunction
(
'concat'
,
array
(
'Doctrine_Expression_Sqlite'
,
'concatImpl'
));
$this
->
dbh
->
sqliteCreateFunction
(
'md5'
,
'md5'
,
1
);
$this
->
dbh
->
sqliteCreateFunction
(
'md5'
,
'md5'
,
1
);
$this
->
dbh
->
sqliteCreateFunction
(
'now'
,
'time'
,
0
);
$this
->
dbh
->
sqliteCreateFunction
(
'now'
,
'time'
,
0
);
}
}
...
...
lib/Doctrine/Expression/Sqlite.php
View file @
b1df27b1
...
@@ -55,17 +55,6 @@ class Doctrine_Expression_Sqlite extends Doctrine_Expression_Driver
...
@@ -55,17 +55,6 @@ class Doctrine_Expression_Sqlite extends Doctrine_Expression_Driver
return
$dividend
%
$divisor
;
return
$dividend
%
$divisor
;
}
}
/**
* Returns a concatenation of the data that SQLite's concat() function receives.
*
* @return string
*/
public
static
function
concatImpl
()
{
$args
=
func_get_args
();
return
join
(
''
,
$args
);
}
/**
/**
* locate
* locate
* returns the position of the first occurrence of substring $substr in string $str that
* returns the position of the first occurrence of substring $substr in string $str that
...
...
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