修复部分问题

This commit is contained in:
xx
2024-05-28 09:24:08 +08:00
parent d55deccd2e
commit 690601548c
4 changed files with 8 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ namespace ylib
void close();
std::string read(const std::string& name,const std::string& key,const std::string& default_value = "") const;
bool write(const std::string& name,const std::string& key,const std::string& value);
#ifndef _WIN32
#ifndef _WIN321
bool del(const std::string& name, const std::string& key);
// 一级NAME

View File

@@ -456,7 +456,7 @@ std::string ylib::mysql::result::field_name(uint32 index)
std::string ylib::mysql::result::field_type(uint32 index)
{
return RESULT_SET->getMetaData()->getColumnTypeName(index);
return strutils::change_case(RESULT_SET->getMetaData()->getColumnTypeName(index), false);
}
std::string ylib::mysql::result::field_type(const std::string& name)

View File

@@ -13,7 +13,7 @@
#include "util/strutils.h"
#include "util/time.h"
#include "util/system.h"
#define _DEBUG_CLIENT 1
#define _DEBUG_CLIENT 0
#define CLIENT ((IHttpClient*)client())

View File

@@ -15,7 +15,7 @@ ylib::ini::~ini()
bool ylib::ini::open(const std::string& filepath)
{
m_filepath = filepath;
#ifndef _WIN32
#ifndef _WIN321
close();
m_point = new CSimpleIniA();
return INI_POINT->LoadFile(filepath.c_str()) >= 0;
@@ -25,7 +25,7 @@ bool ylib::ini::open(const std::string& filepath)
}
void ylib::ini::close()
{
#ifndef _WIN32
#ifndef _WIN321
if(m_point != nullptr)
delete INI_POINT;
m_point = nullptr;
@@ -35,7 +35,7 @@ void ylib::ini::close()
}
std::string ylib::ini::read(const std::string& name, const std::string& key,const std::string& default_value) const
{
#ifndef _WIN32
#ifndef _WIN321
return INI_POINT->GetValue(name.c_str(), key.c_str(),default_value.c_str());
#else
std::string value;
@@ -53,7 +53,7 @@ std::string ylib::ini::read(const std::string& name, const std::string& key,cons
bool ylib::ini::write(const std::string& name, const std::string& key, const std::string& value)
{
#ifndef _WIN32
#ifndef _WIN321
if (INI_POINT->SetValue(name.c_str(), key.c_str(), value.c_str()) < 0)
return false;
@@ -62,7 +62,7 @@ bool ylib::ini::write(const std::string& name, const std::string& key, const std
return WritePrivateProfileStringA(name.c_str(), key.c_str(), value.c_str(), m_filepath.c_str());
#endif
}
#ifndef _WIN32
#ifndef _WIN321
bool ylib::ini::del(const std::string& name, const std::string& key)
{