Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
eef31b2a
Commit
eef31b2a
authored
Aug 20, 2014
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(DBServer): Исправил ошибку (SIGSEGV) в DBServer_MySQL::query() (setbug #6219)
parent
2938d990
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
TODO
TODO
+4
-7
libuniset2.spec
conf/libuniset2.spec
+5
-1
MySQLInterface.cc
extensions/DBServer-MySQL/MySQLInterface.cc
+4
-3
No files found.
TODO
View file @
eef31b2a
- делать возможность вывода в программе вывода версии (коммита) сборки
- Внести в проект реализацию протокола PLCNet // нужно ли
- написать "uniset-check" автоматический тест основных функций (getValue/setValue и т.п.)
- сделать, чтобы можно было Debug пускать через syslog (да ещё и на другую машину)
...
...
@@ -13,9 +9,6 @@
- (IONotifyController): Разработать механизм заказа группы датчиков сразу (и ответ тоже группой)
----------
admin:
- processing "precision"
codegen:
- Сделать работу с TestMode на основе заказа!
- Сделать работу с ResetMsg на основе askTimer! // подумать нужно ли..
...
...
@@ -34,6 +27,9 @@ Version 2.0
- smonit запись значений в файл
- depend_invert - возможность инвертировать логику, т.е. задать не "разрешающий датчик", а "запрещающий"
- uniset-codegen: сделать в src.xml <description> и генерировать на его основе описание класса
Version 2.1
============
\ No newline at end of file
conf/libuniset2.spec
View file @
eef31b2a
...
...
@@ -8,7 +8,7 @@
Name: libuniset2
Version: 2.0
Release: alt
4
Release: alt
5
Summary: UniSet - library for building distributed industrial control systems
...
...
@@ -333,6 +333,10 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
%exclude %_pkgconfigdir/libUniSet2.pc
%changelog
* Wed Aug 20 2014 Pavel Vainerman <pv@altlinux.ru> 2.0-alt5
- (iobase): rename 'jar' ==> 'debounce'
- fixed bug (setbug# 6219) in DBServer_MySQL (SIGSEGV)
* Tue Jun 10 2014 Pavel Vainerman <pv@altlinux.ru> 2.0-alt4
- minor fixes..
...
...
extensions/DBServer-MySQL/MySQLInterface.cc
View file @
eef31b2a
...
...
@@ -88,7 +88,7 @@ MySQLResult MySQLInterface::query( const std::string& q )
lastQ
=
q
;
MYSQL_RES
*
res
=
mysql_store_result
(
mysql
);
// _use_result - некорректно работает с _num_rows
if
(
mysql_num_rows
(
res
)
==
0
)
if
(
!
res
||
mysql_num_rows
(
res
)
==
0
)
return
MySQLResult
();
return
MySQLResult
(
res
,
true
);
...
...
@@ -104,9 +104,10 @@ bool MySQLInterface::query_ok( const string& q )
lastQ
=
q
;
MYSQL_RES
*
res
=
mysql_store_result
(
mysql
);
// _use_result - некорректно работает с _num_rows
if
(
mysql_num_rows
(
res
)
==
0
)
if
(
!
res
||
mysql_num_rows
(
res
)
==
0
)
{
mysql_free_result
(
res
);
if
(
res
)
mysql_free_result
(
res
);
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment