
升级12开源版
手册分类

- 1. 禅道介绍
- 1.1 关于禅道项目管理软件
- 1.2 如何获得支持
- 1.3 各版本功能差异
- 1.4 关注我们
- 2. 安装禅道
- 2.1. 环境搭建
- 2.1.1 搭建Ubuntu环境安装禅道
- 2.1.2 搭建Centos环境安装禅道
- 2.1.3 安装PHP的ioncube扩展
- 2.2. 安装12开源版
- 2.2.1 选择适合您的安装方法
- 2.2.2 使用云禅道在线项目管理服务
- 2.2.3 (推荐)windows用一键安装包安装
- 2.2.4 (推荐)Linux用一键安装包
- 2.2.5 linux下用lampp集成包安装
- 2.2.6 使用源码包安装(MAC系统)
- 2.2.7 MAC下用XAMPP安装禅道
- 2.2.8 MAC下用XAMPP-VM安装禅道
- 2.2.9 使用源码包安装(各系统通用)
- 2.2.10 宝塔面板安装禅道
- 2.2.11 华芸NAS在线安装
- 2.2.12 Centos7.4系统下安装httpd,mariadb,php7.2环境运行禅道
- 2.2.13 Centos8系统下安装httpd,mariadb,php7.2环境运行禅道
- 2.2.14 安装ioncube扩展
- 2.2.15 安装swoole扩展
- 2.2.16 Docker方式部署禅道
- 2.3 安装PHP的LDAP扩展
- 2.4. 安装12企业版
- 2.4.1 禅道企业版安装包安装方式(各系统通用)
- 2.4.2 (推荐)Windows一键安装包安装
- 2.4.3 (推荐)Linux一键安装包安装
- 2.4.4 centos 7.x 源码安装禅道企业版
- 2.5 在线安装云禅道
- 2.1. 环境搭建
- 3. 升级禅道
- 3.1. 升级12开源版
- 3.1.1 选择和自己环境对应的升级方式
- 3.1.2 通过源代码方式升级(通用)
- 3.1.3 windows一键安装包的升级
- 3.1.4 linux一键安装包升级
- 3.2. 升级12企业版
- 3.3 如何安装ioncube扩展
- 3.1. 升级12开源版
- 4. 维护配置
- 4.1. 维护禅道
- 4.1.1 初始化管理脚本
- 4.1.2 备份禅道
- 4.1.3 恢复删除的资源
- 4.1.4 如何更新燃尽图
- 4.1.5 一键安装包如何实现mysql异机连接
- 4.1.6 linux一键安装包配置https
- 4.1.7 禅道一键安装包迁移/更新禅道一键安装包
- 4.2. 配置禅道
- 4.2.1 设置是否允许匿名访问
- 4.2.2 如何配置email发信
- 4.2.3 如何成为超级管理员
- 4.2.4 配置禅道系统为静态访问
- 4.2.5 去掉禅道访问地址中的zentao
- 4.2.6 linux一键安装包去掉禅道访问地址中的zentao
- 4.2.7 集成禅道和svn
- 4.2.8 集成禅道和git
- 4.2.9 在第三方应用中集成禅道
- 4.2.10 第三方应用配置免密登录禅道
- 4.2.11 第三方应用集成禅道客户端进行消息通知
- 4.2.12 集成webhook
- 4.2.13 集成ZDOO
- 4.2.14 客户端集成
- 4.2.15 禅道的翻译功能
- 4.2.16 浏览器通知的设置
- 4.2.17 集成钉钉工作消息通知
- 4.2.18 集成企业微信应用消息通知
- 4.2.19 集成企业微信群机器人
- 4.2.20 集成飞书群机器人
- 4.2.21 集成飞书消息通知
- 4.2.22 解决一键安装包密码口令弱的问题
- 4.2.23 集成版本库、集成Jenkins,并进行构建
- 4.3. 性能优化
- 4.1. 维护禅道
- 5. 快速入门
- 5.1. 12版本快速入门
- 5.1.1 禅道使用的基本流程和产品、研发、测试之间的三权分立
- 5.1.2 禅道的新手教程
- 5.1.3 创建第一个产品
- 5.1.4 添加第一个需求
- 5.1.5 开始第一个项目
- 5.1.6 确定项目要完成的需求列表
- 5.1.7 为需求分解任务
- 5.1.8 提交bug
- 5.1.9 禅道的自定义功能
- 5.1.10 文档管理
- 5.1.11 如何排查产品、项目是否有访问权限
- 5.1.12 年度总结,工作内容统计一览表说明
- 5.2. 新版本快速入门
- 5.2.1 15版本禅道的新增功能
- 5.2.2 15版本禅道的界面变化
- 5.2.3 新版本禅道的最简使用
- 5.3. 12版创建分组和用户
- 5.3.1 建立部门结构
- 5.3.2 添加一个用户帐号
- 5.3.3 批量维护帐号
- 5.3.4 设置分组,建立权限体系
- 5.4. 12版本最简使用
- 5.4.1 使用禅道来进行项目任务管理
- 5.4.2 只使用禅道来做bug管理
- 5.4.3 只使用禅道来进行产品管理
- 5.4.4 个人使用禅道来做事务跟踪管理
- 5.5. 12版本基本使用
- 5.5.1 敏捷开发及scrum简介
- 5.5.2 禅道和scrum的对应关系
- 5.5.3 视频教程:第一个演示项目
- 5.5.4 维护联系人
- 5.5.5 导入excel、csv参考文档
- 5.5.6 工作方式的切换
- 5.5.7 操作获取积分功能
- 5.5.8 自定义必填项功能
- 5.6. 12版本进阶使用
- 5.6.1. 使用流程
- 5.6.1.1 禅道使用流程图解
- 5.6.2. 个人管理
- 5.6.2.1 使用待办进行个人事务管理
- 5.6.2.2 关注需要自己处理的任务、需求、bug
- 5.6.2.3 通过我的档案查看或者修改个人信息
- 5.6.2.4 视频教程:禅道使用之个人篇
- 5.6.3. 产品经理篇
- 5.6.3.1 维护产品
- 5.6.3.2 维护产品线
- 5.6.3.3 创建和评审需求
- 5.6.3.4 变更和评审需求
- 5.6.3.5 需求的状态和研发阶段
- 5.6.3.6 需求的注意事项
- 5.6.3.7 维护产品模块
- 5.6.3.8 建立发布计划
- 5.6.3.9 建立发布
- 5.6.3.10 路线图
- 5.6.3.11 文档管理
- 5.6.3.12 主持产品会议
- 5.6.3.13 参与项目管理、演示和总结
- 5.6.3.14 需求的基本统计报表
- 5.6.3.15 视频教程:禅道使用之产品经理篇
- 5.6.4. 项目经理篇
- 5.6.4.1 建立项目
- 5.6.4.2 组建项目团队
- 5.6.4.3 确定项目要完成的需求列表
- 5.6.4.4 组织进行任务分解
- 5.6.4.5 召开每天的站立会议
- 5.6.4.6 通过燃尽图了解项目的进展
- 5.6.4.7 通过各种列表的各种功能了解项目进展
- 5.6.4.8 召开演示会议和总结会议
- 5.6.4.9 项目任务基本的报表统计
- 5.6.4.10 视频教程:禅道使用之项目经理篇
- 5.6.5. 开发团队篇
- 5.6.5.1 参加项目计划会议,分解任务
- 5.6.5.2 领取任务,并每天更新任务
- 5.6.5.3 通过看板和树状图查看任务
- 5.6.5.4 创建版本
- 5.6.5.5 申请测试
- 5.6.5.6 解决bug
- 5.6.5.7 文档管理
- 5.6.5.8 确认bug
- 5.6.5.9 视频教程:禅道使用之开发团队篇
- 5.6.6. 测试团队篇
- 5.6.6.1 维护bug视图模块
- 5.6.6.2 提交bug
- 5.6.6.3 验证bug,关闭
- 5.6.6.4 激活bug
- 5.6.6.5 找到自己需要的bug
- 5.6.6.6 维护测试用例视图
- 5.6.6.7 创建测试用例
- 5.6.6.8 测试套件、报告和公共用例库的维护
- 5.6.6.9 管理测试版本
- 5.6.6.10 执行用例,提交Bug
- 5.6.6.11 查看报表统计
- 5.6.6.12 视频教程:禅道使用之测试团队篇
- 5.6.1. 使用流程
- 5.7. 12版本企业版使用
- 5.7.1 开源版功能
- 5.7.2 添加用户和权限维护
- 5.7.3 甘特图功能简介
- 5.7.4 工作日志管理功能简介
- 5.7.5 代码库(SVN GIT)及代码评审
- 5.7.6 日历功能简介
- 5.7.7 Excel导入导出功能简介
- 5.7.8 短信通知功能简介
- 5.7.9 运维管理
- 5.7.10 导出为Word功能简介
- 5.7.11 水晶报表(自定义报表)功能简介
- 5.7.12 LDAP用户验证功能简介
- 5.7.13 反馈管理
- 5.7.14 统计视图功能简介
- 5.7.15 文档管理
- 5.7.16 报表导出功能简介
- 5.7.17. 办公管理
- 5.7.18. 工作流
- 5.7.18.1 工作流内置流程
- 5.7.18.2 工作流功能简介
- 5.7.18.3 自定义内置工作流
- 5.7.18.4 新增工作流示例
- 5.7.18.5 工作流 JS、CSS 使用说明
- 5.7.19 视频及PPT资料
- 5.1. 12版本快速入门
- 6. 按照角色使用
- 6.1. 管理员
- 6.2. 产品经理
- 6.3. 项目经理
- 6.4. 研发人员
- 6.4.1 参加产品计划会议,分解任务
- 6.4.2 领取任务,并每天更新任务
- 6.4.3 创建版本,提交测试
- 6.4.4 确认Bug,解决Bug
- 6.4.5 执行的综合、需求、Bug、任务看板
- 6.5. 测试人员
- 7. 功能介绍
- 7.1. 核心管理结构
- 7.1.1 项目(Project)
- 7.1.2 产品(Product)
- 7.1.3 执行(Execution)
- 7.1.4 管理模型
- 7.2. 地盘
- 7.3. 项目集
- 7.4. 产品
- 7.5. 项目
- 7.5.1 融合敏捷项目
- 7.5.2 融合瀑布项目
- 7.5.3. 项目通用功能
- 7.5.3.1 项目的基本设置
- 7.5.3.2 维护项目的执行
- 7.5.3.3 维护项目的需求
- 7.5.3.4 维护项目的Bug、用例、测试单、测试报告
- 7.5.3.5 维护项目的文档
- 7.5.3.6 维护项目的版本、发布
- 7.5.4 项目资源日历(插件)
- 7.6. 执行
- 7.6.1 参加产品计划会议,分解任务
- 7.6.2 领取任务,并每天更新任务
- 7.6.3 创建版本,提交测试
- 7.6.4 确认Bug,解决Bug
- 7.7. 测试
- 7.8. 自动化测试
- 7.9. DevOps(旧版)
- 7.9.1. DevOps 功能
- 7.9.1.1 Git/SVN版本库管理和查看代码
- 7.9.1.2. 集成GitLab
- 7.9.1.2.1 绑定用户,关联issue,进行构建
- 7.9.1.2.2 合并请求
- 7.9.1.2.3 禅道中GitLab的权限
- 7.9.1.3 集成Jenkins,进行构建
- 7.9.1.4 集成SonarQube
- 7.9.1. DevOps 功能
- 7.10. 文档
- 7.11. BI
- 7.12. 看板
- 7.12.1 通用看板功能
- 7.13. 组织
- 7.13.1 团队成员和工作信息
- 7.13.2 人力资源日历(需安装插件)
- 7.13.3 组织动态
- 7.13.4 公司信息
- 7.14. 后台设置
- 7.14.1. 系统设置
- 7.14.2. 人员管理
- 7.14.3. 模型配置
- 7.14.3.1 融合敏捷模型
- 7.14.4. 功能配置
- 7.14.5. 通知设置
- 7.14.6 插件管理
- 7.14.7 二次开发
- 7.14.8 数据导入
- 7.14.9. 权限维护和控制
- 7.14.9.1 产品的权限维护和访问控制
- 7.14.9.2 执行的权限维护和访问控制
- 7.14.9.3 项目和执行的访问控制和数据关系
- 7.14.10. DevOps设置
- 7.14.10.1. 资源
- 7.15. 客户端增强版会议SRS
- 7.15.1. 音视频会议配置
- 7.15.1.1 安装音视频服务端
- 7.15.1.2 安装SRS音视频服务端
- 7.15.1.3 开启和配置音视频功能
- 7.15.2. 发起会议
- 7.15.2.1 一对一会话中发起音视频会议
- 7.15.2.2 群组会话中发起音视频会议
- 7.15.2.3 独立发起音视频会议入口
- 7.15.3. 加入会议
- 7.15.3.1 分享音视频会议到会话
- 7.15.3.2 通过会议的ID加入会议
- 7.15.4. 预约会议
- 7.15.4.1 预约会议
- 7.15.5. 会议应用
- 7.15.5.1 音视频会议应用
- 7.15.1. 音视频会议配置
- 7.16. 客户端增强版会议Jitsi
- 7.1. 核心管理结构
- 8. 其他相关
通过源代码方式升级(通用) 分享链接 /book/zentaopms/67.html?releaseID=1
作者:王春生
最后编辑:薛才杰 于 2024-06-19 11:11:19
浏览量:201784
升级是为了保留旧版本中的数据,所以升级前一定要做好数据备份,以免升级过程中出现意外导致数据丢失。停止服务后,复制禅道代码目录作为备份以及数据库备份。
《通过源代码方式升级》视频链接:https://www.zentao.net/zentao-install/zentao-source-code-package-upgrade-80529.html
下面是通用的升级步骤:
一、升级步骤
- 在我们网站下载新版本的源码包,以.zip结尾。(开源版16.5以后的版本,根据php版本选择安装包)
-
解压缩新的程序,覆盖到原来的目录。比如之前禅道安装的目录是在c:\xampp\zentao下面,则将代码覆盖到c:\xampp\zentao,操作方法:zentaopms/ 下面复制所有的文件到 xampp/zentao/ 下面粘帖。
- 执行升级程序。假设禅道的访问路径是http://192.168.1.99/zentao/,升级路径为http://192.168.1.99/zentao/upgrade.php。
- 根据向导,选择对应的版本,按照提示进行即可。
不要下载.exe结尾的程序进行升级,那样子会覆盖原来的数据!
二、插件兼容问题
如果升级之前有安装过第三方朋友开发的插件,需要注意检查下是否和新版本的禅道兼容。如果发现升级之后无法访问,可以替换一下禅道运行代码:
1、把禅道当前运行代码文件夹改名(一般默认是 zentao 或者 zentaopms);
2、到禅道官网下载相同版本禅道的源码,解压后放在同目录下面,保持文件夹名字和之前禅道运行代码文件夹名称相同 。
3、把原先文件夹中的 config/my.php www/data/upload/1 www/.ztaccess www/.htaccess 拷贝到新禅道文件夹对应目录,再访问禅道试试。
( ! ) Notice: Undefined property: config::$edition in /pms/zentao/config/ext/zentaobiz.php on line 25
Call Stack
# Time Memory Function Location
1 0.0003 267232 {main}( ) ../index.php:0
2 0.0069 1769016 baseRouter::createApp( ) ../index.php:34
3 0.0069 1769464 baseRouter->__construct( ) ../router.class.php:430
4 0.0069 1772248 baseRouter->loadMainConfig( ) ../router.class.php:390
5 0.0072 1825240 include( '/pms/zentao/config/config.php' ) ../router.class.php:2154
6 0.0122 2361184 include( '/pms/zentao/config/ext/zentaobiz.php' ) ../config.php:179
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'system-common--CRExecution' for key 'unique'<p>The sql is:
UPDATE `zt_config` SET `key` = 'CRExecution' WHERE `module` = 'common' AND `key` = 'CRProject'</p>
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-bug-exportTemplate' for key 'group'<p>The sql is:
UPDATE `zt_grouppriv` SET `method`='exportTemplate' WHERE `method` = 'exportTemplet'</p>
16:57:58 Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'company' in 'field list'' in E:\xampp\zentao\module\upgrade\model.php:1294
Stack trace:
#0 E:\xampp\zentao\module\upgrade\model.php(1294): PDO->query('UPDATE zt_searc...')
#1 E:\xampp\zentao\module\upgrade\model.php(158): upgradeModel->updateCompany()
#2 E:\xampp\zentao\module\upgrade\model.php(103): upgradeModel->executeOpen('1_0beta', NULL, false, '')
#3 E:\xampp\zentao\module\upgrade\control.php(151): upgradeModel->execute('')
#4 [internal function]: upgrade->execute('')
#5 E:\xampp\zentao\framework\base\router.class.php(2166): call_user_func_array(Array, Array)
#6 E:\xampp\zentao\www\upgrade.php(83): baseRouter->loadModule()
#7 {main}
thrown in E:\xampp\zentao\module\upgrade\model.php on line 1294 when visiting /zentao/upgrade.php?m=upgrade&f=execute
DROP FUNCTION IF EXISTS `get_monday`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `get_monday`(day date) RETURNS date
begin if date_format(day, '%w') = 0 then return subdate(day, date_format(day, '%w') - 6);
else return subdate(day, date_format(day, '%w') -1);
end if;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `get_sunday`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `get_sunday`(day date) RETURNS date
begin
if date_format(day, '%w') = 0 then return day;
else return subdate(day, date_format(day, '%w') - 7);
end if;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_cminited`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION qc_cminited($project int, $category varchar(30)) returns int
begin
declare products int default 0;
declare objects int default 0;
select count(*) from zt_projectproduct where project = $project into products;
select count(distinct product) from zt_object where project = $project and category = $category and type = 'taged' and product in (select product from zt_projectproduct where project = $project) into objects;
IF products = objects THEN
return 1;
ELSEIF products != objects THEN
return 0;
END IF;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_initscale`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION qc_initscale($project int, $category varchar(30), $estimateType varchar(30)) RETURNS float(10,2)
BEGIN
declare $estimate int default 0;
declare $storyEst varchar(30) default 'storyEst';
declare $requestEst varchar(30) default 'requestEst';
if($estimateType = $storyEst) THEN SELECT sum(storyEst) as estimate FROM zt_object WHERE id in(SELECT MIN(id) FROM zt_object WHERE project = $project and category = $category and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
end if;
if($estimateType = $requestEst) THEN SELECT sum(requestEst) as estimate FROM zt_object WHERE id in(SELECT MIN(id) FROM zt_object WHERE project = $project and category = $category and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
end if;
RETURN @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmplanscale`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmplanscale`($project int) RETURNS float(10,2)
BEGIN
declare programScale float (10,2) default 0;
select `scale` from zt_workestimation where project = $project into @programScale;
return @programScale;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmsrinitscale`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmsrinitscale`($project int) RETURNS float(10,2)
begin
declare scale int default 0;
declare inited int default 0;
select qc_cminited($project, 'SRS') into inited;
IF inited = 1 THEN
select qc_initscale($project, 'SRS', 'storyEst') into scale ;
return scale ;
ELSE
return 0;
END IF;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmsrrealscale`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmsrrealscale`($project int) RETURNS float(10,2)
BEGIN
declare totalEstimate float(10,2) default 0;
select CAST(sum(estimate) as DECIMAL(10,2)) as estimate from zt_story where id in (select story from zt_projectstory where project=$project) and type='story' and deleted='0' and closedReason not in ('subdivided', 'duplicate', 'willnotdo', 'cancel', 'bydesign') into totalEstimate;
return totalEstimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmurinitscale`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmurinitscale`($project int) RETURNS float(10,2)
begin
declare scale int default 0;
declare inited int default 0;
select qc_cminited($project, 'URS') into inited;
IF inited = 1 THEN
select qc_initscale($project, 'URS', 'requestEst') into scale;
return scale;
ELSE
return 0;
END IF;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmurrealscale`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmurrealscale`($project int) RETURNS float(10,2)
BEGIN
declare totalEstimate float(10,2) default 0;
select CAST(sum(estimate) as DECIMAL(10,2)) as estimate from zt_story where project=$project and type='requirement' and deleted='0' and closedReason not in ('subdivided', 'duplicate', 'willnotdo', 'cancel', 'bydesign') into totalEstimate;
return totalEstimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmallrequirementstage`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmallrequirementstage`($project int) RETURNS int(1)
BEGIN
select count(*) as products from zt_projectproduct where project = $project into @totalproduct;
select count(*) as product from (select product from zt_projectproduct where project in (select id from zt_project where project = $project and type = 'stage' and attribute = 'request' and deleted = '0') GROUP BY product) as product into @product;
if @totalproduct = @product then return 1;
end if;
RETURN 0;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmdesigntplandays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmdesigntplandays`($project int) RETURNS int(10)
BEGIN
select qc_pgmspecifiedtypeplanneddays($project,'design') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmdesigntrealdays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmdesigntrealdays`($project int) RETURNS int(10)
BEGIN
select qc_pgmspecifiedtypeactualdays($project,'design') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmdevelplandays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmdevelplandays`($project int) RETURNS int(10)
BEGIN
select qc_pgmspecifiedtypeplanneddays($project,'dev') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmdevelrealdays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmdevelrealdays`($project int) RETURNS int(10)
BEGIN
select qc_pgmspecifiedtypeactualdays($project,'dev') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmrequestplandays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmrequestplandays`($project int) RETURNS int(10)
BEGIN
select qc_pgmspecifiedtypeplanneddays($project,'request') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmrequestrealdays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmrequestrealdays`($project int) RETURNS int(10)
BEGIN
select qc_pgmspecifiedtypeactualdays($project,'request') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmspecifiedtypeactualdays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmspecifiedtypeactualdays`($project int,$attribute varchar(50)) RETURNS int(10)
BEGIN
select count(*) from zt_project where project = $project and attribute = $attribute and deleted = '0' and id not in (select parent from zt_project where project = $project and attribute = $attribute and grade = 2 group by parent) into @totalstory;
select count(*) from zt_project where project = $project and attribute = $attribute and deleted = '0' and realDuration > 0 and id not in (select parent from zt_project where project = $project and attribute = $attribute and grade = 2 group by parent) into @setstory;
select sum(realDuration) as realDuration from zt_project where project = $project and attribute = $attribute and deleted = '0' and realDuration > 0 and id not in (select parent from zt_project where project = $project and attribute = $attribute and grade = 2 group by parent) into @days;
if @totalstory != @setstory then
set @days = 0;
end if;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmspecifiedtypeplanneddays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmspecifiedtypeplanneddays`($project int,$attribute varchar(50)) RETURNS int(10)
BEGIN
select sum(planDuration) as planDuration from zt_project where project = $project and attribute = $attribute and deleted = '0' and id not in (select parent from zt_project where project = $project and attribute = $attribute and grade = 2 group by parent) into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmstageactualduration`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmstageactualduration`($product int, $attribute varchar(50)) RETURNS int(10)
BEGIN
select count(*) as totalduration from zt_project where id in (select project from zt_projectproduct where product = $product) and type = 'stage' and attribute = $attribute and deleted = '0' and id not in (select parent from zt_project where id in (select project from zt_projectproduct where product = $product) and attribute = $attribute and grade = 2 group by parent) into @totalduration;
select count(*) as setduration from zt_project where id in (select project from zt_projectproduct where product = $product) and type = 'stage' and attribute = $attribute and deleted = '0' and id not in (select parent from zt_project where id in (select project from zt_projectproduct where product = $product) and attribute = $attribute and grade = 2 group by parent) and realDuration > 0 into @setduration;
select sum(realDuration) as duration from zt_project where id in (select project from zt_projectproduct where product = $product) and type = 'stage' and attribute = $attribute and deleted = '0' and id not in (select parent from zt_project where id in (select project from zt_projectproduct where product = $product) and attribute = $attribute and grade = 2 group by parent) and realDuration > 0 into @duration;
if @totalduration != @setduration then
set @duration = 0;
end if;
return @duration;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmstageplannedduration`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmstageplannedduration`($product int, $attribute varchar(50)) RETURNS int(10)
BEGIN
select sum(planDuration) as duration from zt_project where id in (select project from zt_projectproduct where product = $product) and attribute = $attribute and deleted = '0' and id not in (select parent from zt_project where id in (select project from zt_projectproduct where product = $product) and attribute = $attribute and grade = 2 group by parent) and planDuration > 0 into @duration;
RETURN @duration;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmtestplandays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmtestplandays`($project int) RETURNS int(10)
BEGIN
select qc_pgmspecifiedtypeplanneddays($project,'qa') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmtestrealdays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmtestrealdays`($project int) RETURNS int(10)
BEGIN
select qc_pgmspecifiedtypeactualdays($project,'qa') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_prddesigntplandays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_prddesigntplandays`($project int, $product int) RETURNS int(10)
BEGIN
select qc_pgmstageplannedduration($project, $product, 'design') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_prddesigntrealdays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_prddesigntrealdays`($project int, $product int) RETURNS int(10)
BEGIN
select qc_pgmstageactualduration($project, $product, 'design') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_prddevelplandays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_prddevelplandays`($project int, $product int) RETURNS int(10)
BEGIN
select qc_pgmstageplannedduration($project, $product, 'dev') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_prddevelrealdays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_prddevelrealdays`($project int, $product int) RETURNS int(10)
BEGIN
select qc_pgmstageactualduration($project, $product, 'dev') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_prdrequestplandays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_prdrequestplandays`($project int, $product int) RETURNS int(10)
BEGIN
select qc_pgmstageplannedduration($project, $product, 'request') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_prdrequestrealdays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_prdrequestrealdays`($project int, $product int) RETURNS int(10)
BEGIN
select qc_pgmstageactualduration($project, $product, 'request') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_prdtestplandays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_prdtestplandays`($project int, $product int) RETURNS int(10)
BEGIN
select qc_pgmstageplannedduration($project, $product, 'qa') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_prdtestrealdays`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_prdtestrealdays`($project int, $product int) RETURNS int(10)
BEGIN
select qc_pgmstageactualduration($project, $product, 'qa') as days into @days;
return @days;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmdesgignrealesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmdesgignrealesthours`($project int) RETURNS float(10,2)
BEGIN
return qc_pgmesthoursbytype($project, 'design');
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmdesignrealhours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmdesignrealhours`($project int) RETURNS float(10,2)
BEGIN
return qc_pgmrealhoursbytype($project, 'design');
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmdevelrealesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmdevelrealesthours`($project int) RETURNS float(10,2)
BEGIN
return qc_pgmesthoursbytype($project, 'devel');
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmdevelrealhours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmdevelrealhours`($project int) RETURNS float(10,2)
BEGIN
return qc_pgmrealhoursbytype($project, 'devel');
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmrealesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmrealesthours`($project int) RETURNS float(10,2)
BEGIN
select CAST(sum(estimate) as DECIMAL(10,2)) as estimate from zt_task where project=$project and parent >= 0 and status != 'cancel' and deleted = '0' into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmesthoursbytype`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmesthoursbytype`($project int, $type char(30)) RETURNS float(10,2)
BEGIN
select CAST(sum(estimate) as DECIMAL(10,2)) as estimate from zt_task where project=$project and type = $type and parent >= 0 and status != 'cancel' and deleted = '0' into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmrealhours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmrealhours`($project int) RETURNS float(10,2)
BEGIN
select CAST(sum(consumed) as DECIMAL(10,2)) as consumed from zt_task where project=$project and parent >= 0 and status != 'cancel' and deleted = '0' into @consumed;
return @consumed;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmrealhoursbytype`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmrealhoursbytype`($project int, $type char(30)) RETURNS float(10,2)
BEGIN
select CAST(sum(consumed) as DECIMAL(10,2)) as consumed from zt_task where project=$project and type = $type and parent >= 0 and status != 'cancel' and deleted = '0' into @consumed;
return @consumed;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmrequestrealesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmrequestrealesthours`($project int) RETURNS float(10,2)
BEGIN
return qc_pgmesthoursbytype($project, 'request');
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmrequestrealhours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmrequestrealhours`($project int) RETURNS float(10,2)
BEGIN
return qc_pgmrealhoursbytype($project, 'request');
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmtestrealesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmtestrealesthours`($project int) RETURNS float(10,2)
BEGIN
return qc_pgmesthoursbytype($project, 'test');
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmtestrealhours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmtestrealhours`($project int) RETURNS float(10,2)
BEGIN
return qc_pgmrealhoursbytype($project, 'test');
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_getdevelfirstesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_getdevelfirstesthours`($project int) RETURNS float(10,2)
BEGIN
SELECT sum(devEst) as estimate FROM zt_object WHERE id in(SELECT MIN(id) FROM zt_object WHERE project = $project and category = 'PP' and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_getdesignfirstesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_getdesignfirstesthours`($project int) RETURNS float(10,2)
BEGIN
SELECT sum(designEst) as estimate FROM zt_object WHERE id in(SELECT MIN(id) FROM zt_object WHERE project = $project and category = 'PP' and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_getstoryfirstesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_getstoryfirstesthours`($project int) RETURNS float(10,2)
BEGIN
SELECT sum(requestEst) as estimate FROM zt_object WHERE id in(SELECT MIN(id) FROM zt_object WHERE project = $project and category = 'PP' and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_gettestfirstesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_gettestfirstesthours`($project int) RETURNS float(10,2)
BEGIN
SELECT sum(testEst) as estimate FROM zt_object WHERE id in(SELECT MIN(id) FROM zt_object WHERE project = $project and category = 'PP' and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_getfirstesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_getfirstesthours`($project int) RETURNS float(10,2)
BEGIN
SELECT sum(taskEst) as estimate FROM zt_object WHERE id in(SELECT MIN(id) FROM zt_object WHERE project = $project and category = 'PP' and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_getdevlastesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_getdevlastesthours`($project int) RETURNS float(10,2)
BEGIN
SELECT sum(devEst) as estimate FROM zt_object WHERE id in(SELECT MAX(id) FROM zt_object WHERE project = $project and category = 'PP' and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_getrequestlastesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_getrequestlastesthours`($project int) RETURNS float(10,2)
BEGIN
SELECT sum(requestEst) as estimate FROM zt_object WHERE id in(SELECT MAX(id) FROM zt_object WHERE project = $project and category = 'PP' and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_gettestlastesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_gettestlastesthours`($project int) RETURNS float(10,2)
BEGIN
SELECT sum(testEst) as estimate FROM zt_object WHERE id in(SELECT MAX(id) FROM zt_object WHERE project = $project and category = 'PP' and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_getdesignlastesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_getdesignlastesthours`($project int) RETURNS float(10,2)
BEGIN
SELECT sum(designEst) as estimate FROM zt_object WHERE id in(SELECT MAX(id) FROM zt_object WHERE project = $project and category = 'PP' and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_getlastesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_getlastesthours`($project int) RETURNS float(10,2)
BEGIN
SELECT sum(taskEst) as estimate FROM zt_object WHERE id in(SELECT MAX(id) FROM zt_object WHERE project = $project and category = 'PP' and type = 'taged' and product in (select product from zt_projectproduct where project = $project) group by `product`) into @estimate;
return @estimate;
END</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
DROP FUNCTION IF EXISTS `qc_pgmlastesthours`</p>
SQLSTATE[HY000]: General error: 1728 Cannot load from mysql.proc. The table is probably corrupted<p>The sql is:
CREATE FUNCTION `qc_pgmlastesthours`($project int) RETURNS float(10,2)
BEGIN
declare estimate float(10,2) default 0;
declare inited int default 0;
select qc_cminited($project,'PP') into inited;
IF inited = 1 THEN
select qc_getlastesthours($project) into estimate;
return estimate;
ELSE
return 0;
END IF;
END</p>