lib/Doctrine/DBAL/Platforms/DB2Platform.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 799-806 (lines=8) @@ | 
                                                            
                                    | 796 |  |     /** | 
                                                            
                                    | 797 |  |      * {@inheritDoc} | 
                                                            
                                    | 798 |  |      */ | 
                                                            
                                    | 799 |  |     public function getLocateExpression($str, $substr, $startPos = false) | 
                                                            
                                    | 800 |  |     { | 
                                                            
                                    | 801 |  |         if ($startPos == false) { | 
                                                            
                                    | 802 |  |             return 'LOCATE(' . $substr . ', ' . $str . ')'; | 
                                                            
                                    | 803 |  |         } | 
                                                            
                                    | 804 |  |  | 
                                                            
                                    | 805 |  |         return 'LOCATE(' . $substr . ', ' . $str . ', '.$startPos.')'; | 
                                                            
                                    | 806 |  |     } | 
                                                            
                                    | 807 |  |  | 
                                                            
                                    | 808 |  |     /** | 
                                                            
                                    | 809 |  |      * {@inheritDoc} | 
                                                                        
                 
                                                            
                    
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 600-607 (lines=8) @@ | 
                                                            
                                    | 597 |  |     /** | 
                                                            
                                    | 598 |  |      * {@inheritDoc} | 
                                                            
                                    | 599 |  |      */ | 
                                                            
                                    | 600 |  |     public function getLocateExpression($str, $substr, $startPos = false) | 
                                                            
                                    | 601 |  |     { | 
                                                            
                                    | 602 |  |         if ($startPos == false) { | 
                                                            
                                    | 603 |  |             return 'LOCATE(' . $substr . ', ' . $str . ')'; | 
                                                            
                                    | 604 |  |         } | 
                                                            
                                    | 605 |  |  | 
                                                            
                                    | 606 |  |         return 'LOCATE(' . $substr . ', ' . $str . ', '.$startPos.')'; | 
                                                            
                                    | 607 |  |     } | 
                                                            
                                    | 608 |  |  | 
                                                            
                                    | 609 |  |     /** | 
                                                            
                                    | 610 |  |      * {@inheritDoc} | 
                                                                        
                 
                                                            
                    
lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 86-93 (lines=8) @@ | 
                                                            
                                    | 83 |  |     /** | 
                                                            
                                    | 84 |  |      * {@inheritDoc} | 
                                                            
                                    | 85 |  |      */ | 
                                                            
                                    | 86 |  |     public function getLocateExpression($str, $substr, $startPos = false) | 
                                                            
                                    | 87 |  |     { | 
                                                            
                                    | 88 |  |         if ($startPos == false) { | 
                                                            
                                    | 89 |  |             return 'INSTR('.$str.', '.$substr.')'; | 
                                                            
                                    | 90 |  |         } | 
                                                            
                                    | 91 |  |  | 
                                                            
                                    | 92 |  |         return 'INSTR('.$str.', '.$substr.', '.$startPos.')'; | 
                                                            
                                    | 93 |  |     } | 
                                                            
                                    | 94 |  |  | 
                                                            
                                    | 95 |  |     /** | 
                                                            
                                    | 96 |  |      * {@inheritDoc} | 
                                                                        
                 
                                                            
                    
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 955-962 (lines=8) @@ | 
                                                            
                                    | 952 |  |     /** | 
                                                            
                                    | 953 |  |      * {@inheritdoc} | 
                                                            
                                    | 954 |  |      */ | 
                                                            
                                    | 955 |  |     public function getLocateExpression($str, $substr, $startPos = false) | 
                                                            
                                    | 956 |  |     { | 
                                                            
                                    | 957 |  |         if ($startPos == false) { | 
                                                            
                                    | 958 |  |             return 'LOCATE(' . $str . ', ' . $substr . ')'; | 
                                                            
                                    | 959 |  |         } | 
                                                            
                                    | 960 |  |  | 
                                                            
                                    | 961 |  |         return 'LOCATE(' . $str . ', ' . $substr . ', ' . $startPos . ')'; | 
                                                            
                                    | 962 |  |     } | 
                                                            
                                    | 963 |  |  | 
                                                            
                                    | 964 |  |     /** | 
                                                            
                                    | 965 |  |      * {@inheritdoc} | 
                                                                        
                 
                                                            
                    
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 119-126 (lines=8) @@ | 
                                                            
                                    | 116 |  |     /** | 
                                                            
                                    | 117 |  |      * {@inheritDoc} | 
                                                            
                                    | 118 |  |      */ | 
                                                            
                                    | 119 |  |     public function getLocateExpression($str, $substr, $startPos = false) | 
                                                            
                                    | 120 |  |     { | 
                                                            
                                    | 121 |  |         if ($startPos == false) { | 
                                                            
                                    | 122 |  |             return 'LOCATE('.$str.', '.$substr.')'; | 
                                                            
                                    | 123 |  |         } | 
                                                            
                                    | 124 |  |  | 
                                                            
                                    | 125 |  |         return 'LOCATE('.$str.', '.$substr.', '.$startPos.')'; | 
                                                            
                                    | 126 |  |     } | 
                                                            
                                    | 127 |  |  | 
                                                            
                                    | 128 |  |     /** | 
                                                            
                                    | 129 |  |      * {@inheritdoc} | 
                                                                        
                 
                                                            
                    
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 990-997 (lines=8) @@ | 
                                                            
                                    | 987 |  |     /** | 
                                                            
                                    | 988 |  |      * {@inheritDoc} | 
                                                            
                                    | 989 |  |      */ | 
                                                            
                                    | 990 |  |     public function getLocateExpression($str, $substr, $startPos = false) | 
                                                            
                                    | 991 |  |     { | 
                                                            
                                    | 992 |  |         if ($startPos == false) { | 
                                                            
                                    | 993 |  |             return 'CHARINDEX(' . $substr . ', ' . $str . ')'; | 
                                                            
                                    | 994 |  |         } | 
                                                            
                                    | 995 |  |  | 
                                                            
                                    | 996 |  |         return 'CHARINDEX(' . $substr . ', ' . $str . ', ' . $startPos . ')'; | 
                                                            
                                    | 997 |  |     } | 
                                                            
                                    | 998 |  |  | 
                                                            
                                    | 999 |  |     /** | 
                                                            
                                    | 1000 |  |      * {@inheritDoc} | 
                                                                        
                 
                                                            
                    
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 102-109 (lines=8) @@ | 
                                                            
                                    | 99 |  |     /** | 
                                                            
                                    | 100 |  |      * {@inheritDoc} | 
                                                            
                                    | 101 |  |      */ | 
                                                            
                                    | 102 |  |     public function getLocateExpression($str, $substr, $startPos = false) | 
                                                            
                                    | 103 |  |     { | 
                                                            
                                    | 104 |  |         if ($startPos == false) { | 
                                                            
                                    | 105 |  |             return 'LOCATE(' . $substr . ', ' . $str . ')'; | 
                                                            
                                    | 106 |  |         } | 
                                                            
                                    | 107 |  |  | 
                                                            
                                    | 108 |  |         return 'LOCATE(' . $substr . ', ' . $str . ', '.$startPos.')'; | 
                                                            
                                    | 109 |  |     } | 
                                                            
                                    | 110 |  |  | 
                                                            
                                    | 111 |  |     /** | 
                                                            
                                    | 112 |  |      * {@inheritDoc} |