git repos / oastat

commit 05e0a7f5

sago007 · 2016-05-28 21:19
05e0a7f5c6e7de289bac37130df7f39595166e1b patch · browse files
parent 1a2212288d55ce74c745b8daddb1af1d2e3af8ec

Use numeric instead of float

Changed files

M sql/create_tables/oastat_create_tables_common.sql before
diff --git a/sql/create_tables/oastat_create_tables_common.sql b/sql/create_tables/oastat_create_tables_common.sql index d3694e5..e747eae 100644 --- a/sql/create_tables/oastat_create_tables_common.sql +++ b/sql/create_tables/oastat_create_tables_common.sql
@@ -58,7 +58,7 @@ CREATE TABLE oastat_gamecvars (
gamenumber bigint unsigned NOT NULL, -- will be used as primary key later
cvar character varying(100) NOT NULL, -- will be used as primary key later
value character varying(256), -- defined as MAX_CVAR_VALUE_STRING in q_shared.h
- numericvalue float -- if value is a float or int, then the value will also be stored here for easier comparison
+ numericvalue NUMERIC(15,2) -- if value is a float or int, then the value will also be stored here for easier comparison
);
CREATE TABLE oastat_kills (
@@ -107,7 +107,7 @@ CREATE TABLE oastat_uservars (
userinfoevent bigint unsigned NOT NULL, -- will be used as primary key
thekey character varying(100) NOT NULL, -- will be used as primary key later
thevalue character varying(256),
- numericvalue float -- if value is a float or int, then the value will also be stored here for easier comparison
+ numericvalue NUMERIC(15,2) -- if value is a float or int, then the value will also be stored here for easier comparison
);
CREATE TABLE oastat_config (