5d806ff6a4
utilize USE_MYSQL; minor improvements to pet portlint. PR: 59699 Submitted by: Sergey Matveychuk <sem@ciam.ru>
32 lines
609 B
Text
32 lines
609 B
Text
--- src/mysql/mainwindow/mainwindowslotschema.cxx.orig Mon Oct 7 12:07:24 2002
|
|
+++ src/mysql/mainwindow/mainwindowslotschema.cxx Sat Jan 3 01:15:42 2004
|
|
@@ -504,6 +504,7 @@
|
|
{
|
|
|
|
bool z = FALSE;
|
|
+ char buf[BUFSIZ];
|
|
|
|
|
|
|
|
@@ -515,7 +516,8 @@
|
|
|
|
{
|
|
|
|
- if((mysql_create_db(&mysql, sql.latin1())))
|
|
+ sprintf(buf, "CREATE DATABASE %s", sql.latin1());
|
|
+ if((mysql_query(&mysql, buf)))
|
|
|
|
{
|
|
|
|
@@ -604,8 +606,10 @@
|
|
}
|
|
|
|
|
|
+ char buf[BUFSIZ];
|
|
+ sprintf(buf, "DROP DATABASE %s", sql.latin1());
|
|
|
|
- if((mysql_drop_db(&mysql, sql.latin1())))
|
|
+ if((mysql_query(&mysql, buf)))
|
|
|
|
{
|
|
|