From bd5e5e0ea89447d498cf74bae2ac4ccd1ba5dec2 Mon Sep 17 00:00:00 2001 From: motodiary Date: Fri, 10 May 2024 16:19:54 +0800 Subject: [PATCH] change sql datatype --- 0008-change-sql-datatype.patch | 25 +++++++++++++++++++++++++ slurm.spec | 8 ++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 0008-change-sql-datatype.patch diff --git a/0008-change-sql-datatype.patch b/0008-change-sql-datatype.patch new file mode 100644 index 0000000..cdf94e7 --- /dev/null +++ b/0008-change-sql-datatype.patch @@ -0,0 +1,25 @@ +From 6d842981303c041e8bb178f80c495cb11fd42d99 Mon Sep 17 00:00:00 2001 +From: motodiary +Date: Fri, 10 May 2024 16:12:20 +0800 +Subject: [PATCH] change sql datatype + +--- + src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c b/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c +index 6de9589..f5f3699 100755 +--- a/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c ++++ b/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c +@@ -1117,7 +1117,7 @@ extern int create_cluster_assoc_table( + { "creation_time", "bigint", "not null" }, + { "mod_time", "bigint", "default 0|not null" }, + { "deleted", "smallint", "default 0" }, +- { "is_def", "boolean", "default false|not null" }, ++ { "is_def", "smallint", "default false|not null" }, + { "id_assoc", "serial", "not null" }, + { "user", "text", "not null|default ''" }, + { "acct", "text", "not null" }, +-- +2.33.0 + diff --git a/slurm.spec b/slurm.spec index fda96bb..9eedfa9 100644 --- a/slurm.spec +++ b/slurm.spec @@ -1,6 +1,6 @@ Name: slurm Version: 21.08.8 -%define rel 10 +%define rel 11 Release: %{rel}%{?dist} Summary: Slurm Workload Manager @@ -23,6 +23,7 @@ Patch4: 0004-fix-some-sql-bug.patch Patch5: 0005-replace-in-as_pgsql_jobacct_process.patch Patch6: 0006-add-return-value-SQL_NO_DATA-in-sql-api.patch Patch7: 0007-replace-and-in-sql-in-some-file.patch +Patch8: 0008-change-sql-datatype.patch # build options .rpmmacros options change to default action # ==================== ==================== ======================== @@ -715,7 +716,10 @@ rm -rf %{buildroot} %systemd_postun_with_restart slurmdbd.service %changelog -* Tue May 07 2024 motodiary - 21.08.8-10 +* Fri May 10 2024 Xing Liu - 21.08.8-11 +- change sql datatype + +* Tue May 07 2024 Xing Liu - 21.08.8-10 - replace && and || in sql in some file * Mon May 06 2024 Xing Liu - 21.08.8-9 -- Gitee