mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-08 01:35:32 +02:00
Version19.209.1
This commit is contained in:
parent
2bfc915e08
commit
5a013f2ab3
|
@ -544,14 +544,15 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
|||
En OpenSWAD:
|
||||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
#define Log_PLATFORM_VERSION "SWAD 19.209 (2020-05-01)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 19.209.1 (2020-05-01)"
|
||||
#define CSS_FILE "swad19.193.1.css"
|
||||
#define JS_FILE "swad19.193.1.js"
|
||||
/*
|
||||
Version 19.209.1: May 01, 2020 Fixed bug in figures cached. (? lines)
|
||||
Version 19.209: May 01, 2020 More figures cached. (300734 lines)
|
||||
3 changes necessary in database:
|
||||
ALTER TABLE figures CHANGE COLUMN Value ValueInt INT NOT NULL DEFAULT 0;
|
||||
ALTER TABLE figures ADD COLUMN ValueDouble DOUBLE PRECISION NOT NULL DEFAULT 0.0 AFTER ValueInt;
|
||||
ALTER TABLE figures ADD COLUMN ValueDouble DOUBLE PRECISION NOT NULL DEFAULT 0 AFTER ValueInt;
|
||||
DELETE FROM figures;
|
||||
|
||||
Version 19.208.1: May 01, 2020 Fixed bug in cache of figures. (300599 lines)
|
||||
|
|
|
@ -76,18 +76,18 @@ void FigCch_UpdateFigureIntoCache (FigCch_FigureCached_t Figure,
|
|||
case FigCch_Type_UNSIGNED:
|
||||
DB_QueryREPLACE ("can not update cached figure value",
|
||||
"REPLACE INTO figures"
|
||||
" (Figure,Scope,Cod,ValueInt)"
|
||||
" (Figure,Scope,Cod,ValueInt,ValueDouble)"
|
||||
" VALUES"
|
||||
" (%u,'%s',%ld,%u)",
|
||||
" (%u,'%s',%ld,%u,'0.0')",
|
||||
(unsigned) Figure,Sco_GetDBStrFromScope (Scope),Cod,
|
||||
*((unsigned *) ValuePtr));
|
||||
break;
|
||||
case FigCch_Type_DOUBLE:
|
||||
DB_QueryREPLACE ("can not update cached figure value",
|
||||
"REPLACE INTO figures"
|
||||
" (Figure,Scope,Cod,ValueDouble)"
|
||||
" (Figure,Scope,Cod,ValueInt,ValueDouble)"
|
||||
" VALUES"
|
||||
" (%u,'%s',%ld,%.15lg)",
|
||||
" (%u,'%s',%ld,0,'%.15lg')",
|
||||
(unsigned) Figure,Sco_GetDBStrFromScope (Scope),Cod,
|
||||
*((double *) ValuePtr));
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user