473,815 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

v8.1.4 new features

For those interested in new features,
Suggested reading...

http://publib.boulder.ibm.com/infoce...help/index.jsp
Release info.
v8.1.4
app.dev.enhence ments
sql data change operations

Result set retrieval from SQL data-change operations

ex:
SELECT * FROM FINAL TABLE (INSERT ...)

You should also check the include columns page.
In UPDATE statements, you can use include columns to return both the old
and new column values for a row.

SELECT salary, oldSalary FROM FINAL TABLE
(UPDATE employee INCLUDE (oldSalary decimal(9,2))
SET oldSalary = salary, salary = salary * 1.05
WHERE job = 'CLERK')
PM
Nov 12 '05 #1
20 2385
There is a small change in CREATE FUNCTION (SQL Scalara, Row, Table):
MODIFIES SQL DATA is allowed for SQL Table functions.
In a nutshell you can execute inline SQL PL in a join, rather than
coding a cursor if the loop is simple enough to be handled by inline SQL
PL. Another usage of it are "select triggers" which have been requested
a few times in this group.

Cheers
Serge

PS: I would very much like to hear feedback on the FP4 SQL Features,
both from a usability and performance point of view.

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab

Nov 12 '05 #2
Serge,

Is it possible to create a table (or GLOBAL TEMPORARY) within a
'MODIFIES SQL DATA' table funcion?

i.e we would like to build a result table in the UDF and then
return the contents.

It seems to work fine if we pre-create the table before the UDF
is called, but we would prefer to handle the temp. table within the
UDF?

Thanks.

Paul.

Serge Rielau <sr*****@ca.e ye-bee-m.com> wrote in message news:<br******* ***@hanover.tor olab.ibm.com>.. .
There is a small change in CREATE FUNCTION (SQL Scalara, Row, Table):
MODIFIES SQL DATA is allowed for SQL Table functions.

Nov 12 '05 #3
No you can't. There are two angles of attack on this in some future:
Introduce LOCAL temporary tables.
IMHO creating and modifying a LOCAL temporary table wouldn't even count
as MODIFIES SQL DATA.
Or introduce DB2 z/Series style CREATED GLOBAL temporary tables.
The latter means the temp is defined in the catalogs (and hence the UDF
can record a dependency on it) but the content is private to teh session.

Until any of these happen you will need to use a persistent table and
privatize it using a where clause and e.g. generate_unique ().

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab

Nov 12 '05 #4
Serge Rielau <sr*****@ca.e ye-bee-m.com> wrote in message news:<br******* ***@hanover.tor olab.ibm.com>.. .
PS: I would very much like to hear feedback on the FP4 SQL
Features, both from a usability and performance point of view.


We appreciate DB2 enhancements in general so there is no reason to
criticize improvements.

I must still deplore that:

- a rollforward pending database can not be accessed in read-only
mode

- there is no support for scrollable cursors in embedded languages

- row value constructors (the capabilities of SQL92) are only
partially implemented

(see for 2 and 3:

http://parallel.rz.uni-mannheim.de/m...c/td000005.htm
)

Bernard Dhooghe
Nov 12 '05 #5
"Serge Rielau" <sr*****@ca.e ye-bee-m.com> wrote in message
news:br******** **@hanover.toro lab.ibm.com...
PS: I would very much like to hear feedback on the FP4 SQL Features,
both from a usability and performance point of view.


I know this isn't quite what you want to hear, but I have the feeling that
FP4 received far too little testing. For example we had to open a PMR
against bad query results (UNION / DISTINCT), it became a HIPER APAR and
we've now received a hotfix. The defect was introduced with FP4. We have
other problems too (increase of unexplained sqlcode=-911 rc=2 that appear to
result from a failure to release locks), but this was also in FP3.

So, to increase usability I'd like to see new DB2 features get more
exhaustive testing to assure they don't break things.
Nov 12 '05 #6
Serge Rielau <sr*****@ca.e ye-bee-m.com> wrote in message news:<bs******* ***@hanover.tor olab.ibm.com>.. .
Not much I can say about that. It's a well known problem that testing
can never we enough.


Hi Serge,

We are using DB2 V7.2 and going to move to DB2 V8.1.4 soon.
Could please you tell me what wrong on (UNION/DISTINCT) on V8.1.4?
Where we can get the HOTFIX? (from IBM site, URL please)

Thanks,

Bill
Nov 12 '05 #7
I don't know Mark's problem with UA.
Maybe he can post the APAR#.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab

Nov 12 '05 #8
You get wrong answers from queries (extra rows that don't meet the
conditions) - it was a no-go for us.

PMR 10781,211,848. Hotfix 9272. Don't know the APAR number as I am the
programmer, not the DB2 sysadm who relayed with IBM support.

"Bill Chen" <ch********@yah oo.com> wrote in message
news:32******** *************** ***@posting.goo gle.com...
Serge Rielau <sr*****@ca.e ye-bee-m.com> wrote in message

news:<bs******* ***@hanover.tor olab.ibm.com>.. .
Not much I can say about that. It's a well known problem that testing
can never we enough.


Hi Serge,

We are using DB2 V7.2 and going to move to DB2 V8.1.4 soon.
Could please you tell me what wrong on (UNION/DISTINCT) on V8.1.4?
Where we can get the HOTFIX? (from IBM site, URL please)

Thanks,

Bill

Nov 12 '05 #9
I think you've missed my point.

Fixpaks are supposed to be a vehicle for delivering fixes for problems. By
altering it to a vehicle for adding new functionality, you increase the risk
that - by adding some new features - you introduce new problems. In
particular, 8.1.4 (as per your post requesting feedback thereon) did just
that - it broke basic query processing that worked previously (PMR
10781,211,848. Hotfix 9272).

Accordingly my feedback is that you would be best off leaving fixpaks as a
means of delivering fixes and not as a means of enhancing functionality.
This is especially so given the frequency of fixpaks and the consequent
limited testing new features receive and consequent large risk of
introducing new defects.

As a user, I am used to performing exhaustive testing with new product
versions. I do not expect to have to do this for fixpaks, in particular as
the standard initial PMR response is "install the latest fixpak and see if
that fixes your problem".

We stumbled over this bug "by accident" - it was only by luck that we
weren't in production. The DB2 team wanted to go live with 8.1.4 (based
mostly on our significant 8.1.3 testing), and I was the one who insisted on
more testing time. Although outnumbered, it was finally accepted that if
there was a problem, I was going to be the one yelled at by the users, so
that if I wanted more testing time, I could have it. And what I was worried
about was actually a spurious SQLCode -911. I wasn't expecting to find that
simple queries gave bad results.

So not only do you need more testing (we agree on that), but you should stop
using FIXpaks as a means of adding new features. Leave them to do what they
say the do - bundles FIXes.

"Serge Rielau" <sr*****@ca.e ye-bee-m.com> wrote in message
news:bs******** **@hanover.toro lab.ibm.com...
Not much I can say about that. It's a well known problem that testing
can never we enough.

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab

Nov 12 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1469
by: Kl | last post by:
Hi, python is really easy to learn in my opinion. There are loads of tutorials/books on the web talking about the most common python features. The problem comes when they add something new to the language or you want to use advanced features. Since python is still evolving its difficult to find good documentation on these new features/language changes. Where can i find always up-to-date documentation about python? Unfortunately the...
18
2058
by: 5460lqh | last post by:
who can tell me which two features in the C++ language are most usefule, and which two features that you think are the most over-rated or the most misused and why you think so? Thanks very much!
2
1514
by: zhaoyandong | last post by:
One of my interviewers ask me "Two favorite features of C++, and over-rated, and misued features" Could anybody give me some advice on this? Thanks
18
1777
by: Michael B Allen | last post by:
Is it considered a bad idea to use a C99 only feature? It has been almost 6 years right? Specifically I'm interested in variadic macros. All of my code is C89 (or less) except for my debugging macros. Thanks, Mike
8
1942
by: Servé Lau | last post by:
I've read the new features that are coming to the next VC and they all sound fine. But I was missing new standard C++ features, will the features like export still not be implemented? What about C features like designated initializers? struct X { int x; int y; }; X x = { .x = 2, .y = 3 };
6
2451
by: aron t | last post by:
Hi, I am good php programmer and want to learn asp.net. Can someone tell me what are the best and the worst features of ASP.NET? thanks
0
1121
by: Shawn Cutter | last post by:
I am beginning work on a somewhat complex project and I need to decide what route to take before beginning the project. The main issue with this project is that it needs to be modular and support customized additions on standard pages. What I mean by the last statement is this. I have a webpage UserSignup.aspx that has all of the standard profile fields (name, address, email, phone). This page resides in a standard project so that...
148
5227
by: BillJosephson | last post by:
Want to do OOP. Does c++ have all the abilities of java, or is it some subset? Thanks...
7
3175
by: Fister | last post by:
I'm reading Professional C# (Wrox) and stumbled across: "Some features are supported by.NET but not by C#, and you might be surprised to learn that some features of the C# language are not supported by .NET (for example, some instances of operator overloading)!" How can some features be supported by C# and not .NET? Are there other features than operator overloading and could someone please supply an example? / Fister
5
2589
by: bearophileHUGS | last post by:
I often use Python to write small programs, in the range of 50-500 lines of code. For example to process some bioinformatics data, perform some data munging, to apply a randomized optimization algorithm to solve a certain messy problem, and many different things. For that I often use several general modules that I have written, like implementation of certain data structures, and small general "utility" functions/classes, plus of course...
0
9610
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9225
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7687
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5710
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3886
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.