Re: please review source(SQLServer compatible)‏

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: please review source(SQLServer compatible)‏
Дата
Msg-id 53A845B1.5030207@dunslane.net
обсуждение исходный текст
Ответ на please review source(SQLServer compatible)‏  (rohtodeveloper <rohtodeveloper@outlook.com>)
Ответы Re: [HACKERS] please review source(SQLServer compatible)‏
Список pgsql-hackers
On 06/23/2014 10:51 AM, rohtodeveloper wrote:
> Dear all,
>
> Our application will be switched from SQL Server to PostgreSQL.
> However, a few functions are not supported yet. So we decided to
> extend it.
>
> The functions are as following:
>
> 1.SQL statement support
>  INSERT statement without INTO keyword
>  DELETE statement without FROM keywork
> 2.Build-in function
>  SQUARE
>  CHAR
>  CHARINDEX
>  LEN
>  REPLICATE
>  SPACE
>  STR
>  STUFF
>  CONVERT
>  DATALENGTH
>  DATEADD
>  DATEDIFF
>  DATEPART
>  DAY
>  MONTH
>  YEAR
>  EOMONTH
>  GETDATE
>  SYSDATETIME
> 3.Operator
>  operator !< (Not Less Than)
>  operator !> (Not Greater Than)
>  operator + (String Concatenation)
> 4.Other
>  DataType support(smalldatetime,datetime,datatime2,uniqueidentifer)
>  Date, Time, and Timestamp Escape Sequences ODBC Scalar Functions
>  OCTET_LENGTH
>  CURRENT_DATE
>  CURRENT_TIME
>
> The extended functions are almost completed but your opinion is very
> important to us.
> Would you please help us to review the extended source?
>
> The attachments is the diff source.
>
> Thank you very much.
>
>


I think this effort is fundamentally misguided. It will mean a
maintenance nightmare for you. You would be much better off migrating
your app to rid it of these SQLServerisms, especially those that require
backend changes. If you have layered your application correctly, so that
the places it calls SQL are relatively confined, then this should not be
terribly difficult. If you have not, then you have bigger problems than
these anyway.

cheers

andrew



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: replication commands and log_statements
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Minmax indexes