fast-fail

Way to abort execution of MySQL scripts (raising error perhaps)?

I need to write setup scripts for MySQL (usually run using 'source [file]' from mysql console) that depend partly on existing data, and there are differences in environments, meaning that sometimes script does fail. A common case is that a 'SET' statement with a select (to locate an id) fails to find anything; console sets value to NULL....

Do you have any tips to effectively use Java Assert?

I don't see much of the developer using Java Assert, but I am very keen in using them. Could you share some tips to effectively use them? ...