SET SQL_MODE = ''; does not work

This is a discussion on SET SQL_MODE = ''; does not work within the MySQL Database forums, part of the Database Forums category; Hello, I have a problem with the configuration of a database. It is set to SQL_MODE = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE _SUBSTITUTION' ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-15-2007
szeta
 
Posts: n/a
Default SET SQL_MODE = ''; does not work

Hello,

I have a problem with the configuration of a database.
It is set to SQL_MODE =
'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE _SUBSTITUTION'
and I can not save 'empty' dates.

After searching the manual, I found something about SQL_MODE and
wanted to set it, but it does not work. Not even for the Session.

What I do:

select @@sql_mode;
STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_ SUBSTITUTION
SET SQL_MODE = '';
(no result, "Abgabe erzeugte keine Ergebnismenge")
select @@sql_mode; is still the same as before.

I am logged in as root. Any suggestion?

Best regards
Ralph

Reply With Quote
  #2 (permalink)  
Old 05-15-2007
Willem Bogaerts
 
Posts: n/a
Default Re: SET SQL_MODE = ''; does not work

Does SET @@SQL_MODE = '' work?


--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/
Reply With Quote
  #3 (permalink)  
Old 05-15-2007
Lee Peedin
 
Posts: n/a
Default Re: SET SQL_MODE = ''; does not work

On Tue, 15 May 2007 15:02:18 +0200, Willem Bogaerts
<w.bogaerts@kratz.maardanzonderditstuk.nl> wrote:

>Does SET @@SQL_MODE = '' work?


Don't you have to stop and restart MySQL (service) for these types of
changes to take effect?

Lee
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:35 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0