Emmanuel BENOîT
74b6f2ab09
* Added various views and helper functions used by the mining computation but which may be re-used in other parts. * Added mining computation update type and associated update function * New constants: game.resources.weightBase (the value used to compute weights from mining settings) and game.resources.extraction (the quantity extracted in a day from a full provider at difficulty 0)
13 lines
No EOL
344 B
PL/PgSQL
13 lines
No EOL
344 B
PL/PgSQL
/*
|
|
* Test privileges on sys.gu_pmc_update_resource( )
|
|
*/
|
|
BEGIN;
|
|
SELECT plan( 1 );
|
|
|
|
SELECT diag_test_name( 'sys.gu_pmc_update_resource - Privileges' );
|
|
SELECT throws_ok( $$
|
|
SELECT * FROM sys.gu_pmc_update_resource( ROW( NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL ) );
|
|
$$ , 42501 );
|
|
|
|
SELECT * FROM finish( );
|
|
ROLLBACK; |