Re: postgresql vs mysql

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: postgresql vs mysql
Дата
Msg-id 20070222014245.GA4561@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: postgresql vs mysql  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-general
On Wed, Feb 21, 2007 at 01:45:08PM -0600, Ron Johnson wrote:
> On 02/21/07 08:42, Michael Fuhr wrote:
> > Not as good as "ERROR: hey bonehead, there ain't no such date" but
>
> But it *inserts the "data"*!!!!!

I didn't say otherwise and I'm not defending MySQL's behavior.  I was
simply refuting the statement that "it doesn't warn you that it didn't
like the input format."

> > at least it's something :-)
>
> Sure, at the interactive command line.
>
> What kind of error code does this return to applications?  Can a PHP
> or C programmer catch this warning, or does MySQL return a success code?

Beats me; I care about my data so I don't use MySQL.  Since it's a
warning I expect the query returns success.  The C API has a
mysql_warning_count() function that appears to be exposed in PHP's
mysqli extension as mysqli_warning_count.  That C function doesn't
appear in the source code for any of the other MySQL extensions in
PHP 5.2.1.

--
Michael Fuhr

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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: postgresql vs mysql
Следующее
От: "Erick Papadakis"
Дата:
Сообщение: Re: postgresql vs mysql