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
b8d8d953
Commit
b8d8d953
authored
Mar 03, 2012
by
Guilherme Blanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented SQRT function to Platform.
parent
c8835edf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+13
-3
No files found.
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
b8d8d953
...
...
@@ -507,11 +507,21 @@ abstract class AbstractPlatform
return
'LENGTH('
.
$column
.
')'
;
}
/**
* Returns the squared value of a column
*
* @param string $column the column to use
* @return string generated sql including an SQRT aggregate function
*/
public
function
getSqrtExpression
(
$column
)
{
return
'SQRT('
.
$column
.
')'
;
}
/**
* Rounds a numeric field to the number of decimals specified.
*
* @param string $expression1
* @param string $expression2
* @return string
*/
public
function
getRoundExpression
(
$column
,
$decimals
=
0
)
...
...
@@ -2424,8 +2434,8 @@ abstract class AbstractPlatform
/**
* Does this platform views ?
*
* @return boolean
*
* @return boolean
*/
public
function
supportsViews
()
{
...
...
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