Working from SQL it is possible to get the DB2 version:
SELECT service_level, fixpack_num FROM TABLE
(sysproc.env_get_inst_info())
as INSTANCEINFO
This blog is a collection of minds around linux, java, javascript, etc. Looking for great opportunities.
SELECT service_level, fixpack_num FROM TABLE
(sysproc.env_get_inst_info())
as INSTANCEINFO
$(function(){
$.whenAll = function( firstParam ) {
var args = arguments,
sliceDeferred = [].slice,
i = 0,
length = args.length,
count = length,
rejected,
deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise )
? firstParam
: jQuery.Deferred();
function resolveFunc( i, reject ) {
return function( value ) {
rejected = true;
args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
if ( !( --count ) ) {
// Strange bug in FF4:
// Values changed onto the arguments object sometimes end up as undefined values
// outside the $.when method. Cloning the object into a fresh array solves the issue
var fn = rejected ? deferred.rejectWith : deferred.resolveWith;
fn.call(deferred, deferred, sliceDeferred.call( args, 0 ));
}
};
}
if ( length > 1 ) {
for( ; i < length; i++ ) {
if ( args[ i ] && jQuery.isFunction( args[ i ].promise ) ) {
args[ i ].promise().then( resolveFunc(i), resolveFunc(i, true) );
} else {
--count;
}
}
if ( !count ) {
deferred.resolveWith( deferred, args );
}
} else if ( deferred !== firstParam ) {
deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
}
return deferred.promise();
};
});
This function allows you to pass multiple deffereds and wait until all of them will be resolved or rejected.