mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
fix some odd sql queries ap not in use
This commit is contained in:
@@ -836,7 +836,7 @@ namespace OpenSim.Data.MySQL
|
|||||||
|
|
||||||
const string queryB = "SELECT `profileImage`, `profileFirstImage` FROM `userprofile` WHERE `useruuid` = ?Id";
|
const string queryB = "SELECT `profileImage`, `profileFirstImage` FROM `userprofile` WHERE `useruuid` = ?Id";
|
||||||
|
|
||||||
using (MySqlCommand cmd = new MySqlCommand(string.Format (queryB,"`userpicks`"), dbcon))
|
using (MySqlCommand cmd = new MySqlCommand(queryB, dbcon))
|
||||||
{
|
{
|
||||||
cmd.Parameters.AddWithValue("?Id", avatarId.ToString());
|
cmd.Parameters.AddWithValue("?Id", avatarId.ToString());
|
||||||
|
|
||||||
|
|||||||
@@ -845,7 +845,7 @@ namespace OpenSim.Data.PGSQL
|
|||||||
|
|
||||||
query = "SELECT \"profileImage\", \"profileFirstImage\" FROM \"userprofile\" WHERE \"useruuid\" = :Id";
|
query = "SELECT \"profileImage\", \"profileFirstImage\" FROM \"userprofile\" WHERE \"useruuid\" = :Id";
|
||||||
|
|
||||||
using (NpgsqlCommand cmd = new NpgsqlCommand(string.Format(query, "\"userpicks\""), dbcon))
|
using (NpgsqlCommand cmd = new NpgsqlCommand(query, dbcon))
|
||||||
{
|
{
|
||||||
cmd.Parameters.Add(m_database.CreateParameter("Id", avatarId));
|
cmd.Parameters.Add(m_database.CreateParameter("Id", avatarId));
|
||||||
|
|
||||||
|
|||||||
@@ -926,7 +926,7 @@ namespace OpenSim.Data.SQLite
|
|||||||
{
|
{
|
||||||
using (SqliteCommand cmd = (SqliteCommand)m_connection.CreateCommand())
|
using (SqliteCommand cmd = (SqliteCommand)m_connection.CreateCommand())
|
||||||
{
|
{
|
||||||
cmd.CommandText = query;
|
cmd.CommandText = string.Format(query, "\"classifieds\"");
|
||||||
cmd.Parameters.AddWithValue(":Id", avatarId.ToString());
|
cmd.Parameters.AddWithValue(":Id", avatarId.ToString());
|
||||||
|
|
||||||
using (reader = cmd.ExecuteReader(CommandBehavior.SingleRow))
|
using (reader = cmd.ExecuteReader(CommandBehavior.SingleRow))
|
||||||
@@ -940,7 +940,7 @@ namespace OpenSim.Data.SQLite
|
|||||||
|
|
||||||
using (SqliteCommand cmd = (SqliteCommand)m_connection.CreateCommand())
|
using (SqliteCommand cmd = (SqliteCommand)m_connection.CreateCommand())
|
||||||
{
|
{
|
||||||
cmd.CommandText = query;
|
cmd.CommandText = string.Format(query, "\"userpicks\"");
|
||||||
cmd.Parameters.AddWithValue(":Id", avatarId.ToString());
|
cmd.Parameters.AddWithValue(":Id", avatarId.ToString());
|
||||||
|
|
||||||
using (reader = cmd.ExecuteReader(CommandBehavior.SingleRow))
|
using (reader = cmd.ExecuteReader(CommandBehavior.SingleRow))
|
||||||
|
|||||||
Reference in New Issue
Block a user