dbTalk Databases Forums  

What does SET SESSION; do?

comp.databases.ingres comp.databases.ingres


Discuss What does SET SESSION; do? in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roy Hann
 
Posts: n/a

Default What does SET SESSION; do? - 09-24-2010 , 02:41 AM






I just noticed that

SET SESSION;

is not only correct SQL syntax, it is also described as correct syntax
(e.g. following error E_US1019).

What should I expect it to do? It is hard to test for its effects (if
any).

--
Roy

UK Ingres User Association Conference 2011 will be on Tuesday June 7 2011.
Put the date in your diary today.

Reply With Quote
  #2  
Old   
Martin Bowes
 
Posts: n/a

Default Re: [Info-Ingres] What does SET SESSION; do? - 09-24-2010 , 04:06 AM






Your right Roy. I've tried this on everything I've got back to a VMS II2.0 box and they all say its cool.

Looks like a hole in the syntax parser. I'd suggest you bring that one to the next code sprint.

Marty

-----Original Message-----
From: Roy Hann [mailto:specially (AT) processed (DOT) almost.meat]
Sent: 24 September 2010 08:41
To: info-ingres (AT) kettleriverconsulting (DOT) com
Subject: [Info-Ingres] What does SET SESSION; do?

I just noticed that

SET SESSION;

is not only correct SQL syntax, it is also described as correct syntax
(e.g. following error E_US1019).

What should I expect it to do? It is hard to test for its effects (if
any).

--
Roy

UK Ingres User Association Conference 2011 will be on Tuesday June 7 2011.
Put the date in your diary today.


_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://ext-cando.kettleriverconsulti...fo/info-ingres

Reply With Quote
  #3  
Old   
Roy Hann
 
Posts: n/a

Default Re: [Info-Ingres] What does SET SESSION; do? - 09-24-2010 , 05:05 AM



Martin Bowes wrote:

Quote:
Your right Roy. I've tried this on everything I've got back to a
VMS II2.0 box and they all say its cool.

Looks like a hole in the syntax parser.
It *looks* like a hole, but it is actually also *described* as valid:

E_US1019 line 1, Syntax error on 'EOF'. The correct syntax is:
SET SESSION
[ADD|DROP PRIVILEGES ( priv {,priv} )]
[,READ ONLY|WRITE]
[,ISOLATION LEVEL isolation_level]
[WITH [SECURITY_LABEL = 'label' | INITIAL_LABEL]
[,ON_ERROR = ROLLBACK TRANSACTION|STATEMENT]
[,ON_USER_ERROR = NOROLLBACK | ROLLBACK TRANSACTION]
[,ON_LOGFULL = ABORT|COMMIT|NOTIFY]
[,[NO]PRIVILEGES [= ( priv {,priv} )| ALL | DEFAULT]]
[,[NO]PRIORITY [= nnnn | INITIAL | MAXIMUM | MINIMUM]]
[,[NO]DESCRIPTION [= description]]
]
(Fri Sep 24 11:01:32 2010)

OK, maybe the parser and the error message are both working from the
same excessively permissive grammar. Or maybe that syntax really does
do something.

--
Roy

UK Ingres User Association Conference 2011 will be on Tuesday June 7 2011.
Put the date in your diary today.

Reply With Quote
  #4  
Old   
Tim Ellis
 
Posts: n/a

Default Re: What does SET SESSION; do? - 09-24-2010 , 05:33 AM



On Sep 24, 11:05*am, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote:

Quote:
OK, maybe the parser and the error message are both working from the
same excessively permissive grammar. *Or maybe that syntax really does
do something.

Resets everything back to the defaults after you've changed them with
earlier "set session" statements?
(just a guess...)

Reply With Quote
  #5  
Old   
Karl Schendel
 
Posts: n/a

Default Re: [Info-Ingres] What does SET SESSION; do? - 09-24-2010 , 05:37 AM



On Sep 24, 2010, at 3:41 AM, Roy Hann wrote:

Quote:
I just noticed that

SET SESSION;

is not only correct SQL syntax, it is also described as correct syntax
(e.g. following error E_US1019).

What should I expect it to do? It is hard to test for its effects (if
any).
It doesn't do anything. I think the grammar is a side effect of there
being basically two kinds of SET SESSION:
SET SESSION thing, thing
SET SESSION WITH thing, thing. There's two sets of rules
and either or both can be empty. There's no good reason for the
two forms that I know of, it just happened.

Karl

Reply With Quote
  #6  
Old   
Roy Hann
 
Posts: n/a

Default Re: What does SET SESSION; do? - 09-24-2010 , 05:37 AM



Tim Ellis wrote:

Quote:
On Sep 24, 11:05*am, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote:

OK, maybe the parser and the error message are both working from the
same excessively permissive grammar. *Or maybe that syntax really does
do something.


Resets everything back to the defaults after you've changed them with
earlier "set session" statements?
(just a guess...)
That's the sort of plausible possibility I was expecting to hear, yes.

--
Roy

UK Ingres User Association Conference 2011 will be on Tuesday June 7 2011.
Put the date in your diary today.

Reply With Quote
  #7  
Old   
Karl Schendel
 
Posts: n/a

Default Re: [Info-Ingres] What does SET SESSION; do? - 09-24-2010 , 06:38 AM



On Sep 24, 2010, at 6:37 AM, Roy Hann wrote:

Quote:
Tim Ellis wrote:

On Sep 24, 11:05 am, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote:

OK, maybe the parser and the error message are both working from the
same excessively permissive grammar. Or maybe that syntax really does
do something.


Resets everything back to the defaults after you've changed them with
earlier "set session" statements?
(just a guess...)

That's the sort of plausible possibility I was expecting to hear, yes.
Plausible, but it happens to not be the case. I don't think there is any
way to set session default (although it's maybe not a bad idea!).
I'd do it with set session default, though, not just set session.

Karl

Reply With Quote
  #8  
Old   
Mike Leo
 
Posts: n/a

Default Re: [Info-Ingres] What does SET SESSION; do? - 09-24-2010 , 11:05 AM



On Sep 24, 2010, at 6:38 AM, Karl Schendel wrote:

Quote:
On Sep 24, 2010, at 6:37 AM, Roy Hann wrote:

Tim Ellis wrote:

On Sep 24, 11:05 am, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote:

OK, maybe the parser and the error message are both working from the
same excessively permissive grammar. Or maybe that syntax really does
do something.


Resets everything back to the defaults after you've changed them with
earlier "set session" statements?
(just a guess...)

That's the sort of plausible possibility I was expecting to hear, yes.

Plausible, but it happens to not be the case. I don't think there is any
way to set session default (although it's maybe not a bad idea!).
I'd do it with set session default, though, not just set session.

Karl
Friday's on comp.databases.ingres are always so riveting. I'm just glad
nobody brought up the release of Postgres 9 ...

;-)

Mikey

Reply With Quote
  #9  
Old   
Roy Hann
 
Posts: n/a

Default Re: [Info-Ingres] What does SET SESSION; do? - 09-24-2010 , 11:20 AM



Mike Leo wrote:

Quote:
Friday's on comp.databases.ingres are always so riveting. I'm just glad
nobody brought up the release of Postgres 9 ...
Now you've brought it up you can clean it up too. I don't want to step
in it.

--
Roy

UK Ingres User Association Conference 2011 will be on Tuesday June 7 2011.
Put the date in your diary today.

Reply With Quote
  #10  
Old   
Ingres Forums
 
Posts: n/a

Default Re: What does SET SESSION; do? - 09-24-2010 , 11:29 AM



Well, one could consider it as a kind of a valid "no-op" operation,
which would probably reset some session's runtime information
(iierrornumber, iirowcount, etc.)


--
Bodo

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 On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.