Ticket #1945: diseqc-switch-sql.patch
File diseqc-switch-sql.patch, 1.0 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/diseqc.cpp
1133 1133 1134 1134 bool DiSEqCDevSwitch::Store(void) const 1135 1135 { 1136 QString subtype = SwitchTypeToString(m_type);1136 QString type = SwitchTypeToString(m_type); 1137 1137 MSqlQuery query(MSqlQuery::InitCon()); 1138 1138 1139 1139 // insert new or update old … … 1157 1157 " description, subtype, switch_ports) " 1158 1158 "VALUES " 1159 1159 " (:PARENT, :ORDINAL, 'switch', " 1160 " :DESC, : SUBTYPE,:PORTS)");1160 " :DESC, :TYPE, :PORTS)"); 1161 1161 } 1162 1162 1163 1163 if (m_parent) … … 1165 1165 1166 1166 query.bindValue(":ORDINAL", m_ordinal); 1167 1167 query.bindValue(":DESC", GetDescription()); 1168 query.bindValue(": SUBTYPE", subtype);1168 query.bindValue(":TYPE", type); 1169 1169 query.bindValue(":PORTS", m_num_ports); 1170 1170 query.bindValue(":DEVID", GetDeviceID()); 1171 1171