Merge pull request #528 from ilvalle/pg_rename
renamed postgre.py into postgres.py, removed 2 overriding PG
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from .sqlite import SQLiteAdapter, SpatiaLiteAdapter, JDBCSQLiteAdapter
|
||||
from .mysql import MySQLAdapter
|
||||
from .postgre import PostgreSQLAdapter, NewPostgreSQLAdapter, JDBCPostgreSQLAdapter
|
||||
from .postgres import PostgreSQLAdapter, NewPostgreSQLAdapter, JDBCPostgreSQLAdapter
|
||||
from .oracle import OracleAdapter
|
||||
from .mssql import MSSQLAdapter, MSSQL2Adapter, MSSQL3Adapter, MSSQL4Adapter, \
|
||||
VerticaAdapter, SybaseAdapter
|
||||
|
||||
@@ -211,14 +211,6 @@ class PostgreSQLAdapter(BaseAdapter):
|
||||
return '(%s ~ %s)' % (self.expand(first),
|
||||
self.expand(second,'string'))
|
||||
|
||||
def STARTSWITH(self,first,second):
|
||||
return '(%s LIKE %s)' % (self.expand(first),
|
||||
self.expand(second+'%','string'))
|
||||
|
||||
def ENDSWITH(self,first,second):
|
||||
return '(%s LIKE %s)' % (self.expand(first),
|
||||
self.expand('%'+second,'string'))
|
||||
|
||||
# GIS functions
|
||||
|
||||
def ST_ASGEOJSON(self, first, second):
|
||||
Reference in New Issue
Block a user