From 1937a36997710f117bc742e0e2d9bcab8d9f2d5b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 19 Oct 2016 22:17:12 +1300 Subject: Remove semi-colons from SQL queries --- debug.xml | 108 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 54 insertions(+), 54 deletions(-) (limited to 'debug.xml') diff --git a/debug.xml b/debug.xml index e3ee64221..92577a617 100644 --- a/debug.xml +++ b/debug.xml @@ -97,7 +97,7 @@ 7 - SELECT * FROM server; + SELECT * FROM server @@ -114,21 +114,21 @@ zoom = :zoom, twelveHourFormat = :twelveHourFormat, attributes = :attributes - WHERE id = :id; + WHERE id = :id SELECT * FROM users - WHERE email = :email; + WHERE email = :email - SELECT * FROM users; + SELECT * FROM users INSERT INTO users (name, email, hashedPassword, salt, admin, map, distanceUnit, speedUnit, latitude, longitude, zoom, twelveHourFormat, attributes) - VALUES (:name, :email, :hashedPassword, :salt, :admin, :map, :distanceUnit, :speedUnit, :latitude, :longitude, :zoom, :twelveHourFormat, :attributes); + VALUES (:name, :email, :hashedPassword, :salt, :admin, :map, :distanceUnit, :speedUnit, :latitude, :longitude, :zoom, :twelveHourFormat, :attributes) @@ -144,114 +144,114 @@ zoom = :zoom, twelveHourFormat = :twelveHourFormat, attributes = :attributes - WHERE id = :id; + WHERE id = :id - UPDATE users SET hashedPassword = :hashedPassword, salt = :salt WHERE id = :id; + UPDATE users SET hashedPassword = :hashedPassword, salt = :salt WHERE id = :id - DELETE FROM users WHERE id = :id; + DELETE FROM users WHERE id = :id - SELECT userId, deviceId FROM user_device; + SELECT userId, deviceId FROM user_device - SELECT userId, groupId FROM user_group; + SELECT userId, groupId FROM user_group - SELECT * FROM devices; + SELECT * FROM devices - INSERT INTO devices (name, uniqueId, groupId, attributes) VALUES (:name, :uniqueId, :groupId, :attributes); + INSERT INTO devices (name, uniqueId, groupId, attributes) VALUES (:name, :uniqueId, :groupId, :attributes) - UPDATE devices SET name = :name, uniqueId = :uniqueId, groupId = :groupId, attributes = :attributes WHERE id = :id; + UPDATE devices SET name = :name, uniqueId = :uniqueId, groupId = :groupId, attributes = :attributes WHERE id = :id - UPDATE devices SET lastUpdate = :lastUpdate WHERE id = :id; + UPDATE devices SET lastUpdate = :lastUpdate WHERE id = :id - DELETE FROM devices WHERE id = :id; + DELETE FROM devices WHERE id = :id - INSERT INTO user_device (userId, deviceId) VALUES (:userId, :deviceId); + INSERT INTO user_device (userId, deviceId) VALUES (:userId, :deviceId) - DELETE FROM user_device WHERE userId = :userId AND deviceId = :deviceId; + DELETE FROM user_device WHERE userId = :userId AND deviceId = :deviceId - SELECT * FROM groups; + SELECT * FROM groups - INSERT INTO groups (name, groupId, attributes) VALUES (:name, :groupId, :attributes); + INSERT INTO groups (name, groupId, attributes) VALUES (:name, :groupId, :attributes) - UPDATE groups SET name = :name, groupId = :groupId, attributes = :attributes WHERE id = :id; + UPDATE groups SET name = :name, groupId = :groupId, attributes = :attributes WHERE id = :id - DELETE FROM groups WHERE id = :id; + DELETE FROM groups WHERE id = :id - INSERT INTO user_group (userId, groupId) VALUES (:userId, :groupId); + INSERT INTO user_group (userId, groupId) VALUES (:userId, :groupId) - DELETE FROM user_group WHERE userId = :userId AND groupId = :groupId; + DELETE FROM user_group WHERE userId = :userId AND groupId = :groupId - SELECT * FROM positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime; + SELECT * FROM positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime INSERT INTO positions (deviceId, protocol, serverTime, deviceTime, fixTime, valid, latitude, longitude, altitude, speed, course, address, attributes) - VALUES (:deviceId, :protocol, :now, :deviceTime, :fixTime, :valid, :latitude, :longitude, :altitude, :speed, :course, :address, :attributes); + VALUES (:deviceId, :protocol, :now, :deviceTime, :fixTime, :valid, :latitude, :longitude, :altitude, :speed, :course, :address, :attributes) - SELECT * FROM positions WHERE id IN (SELECT positionId FROM devices); + SELECT * FROM positions WHERE id IN (SELECT positionId FROM devices) - UPDATE devices SET positionId = :id WHERE id = :deviceId; + UPDATE devices SET positionId = :id WHERE id = :deviceId - SELECT * FROM events WHERE id = :id; + SELECT * FROM events WHERE id = :id INSERT INTO events (type, serverTime, deviceId, positionId, geofenceId, attributes) - VALUES (:type, :serverTime, :deviceId, :positionId, :geofenceId, :attributes); + VALUES (:type, :serverTime, :deviceId, :positionId, :geofenceId, :attributes) - SELECT * FROM events WHERE deviceId = :deviceId AND type LIKE :type AND serverTime BETWEEN :from AND :to ORDER BY serverTime DESC; + SELECT * FROM events WHERE deviceId = :deviceId AND type LIKE :type AND serverTime BETWEEN :from AND :to ORDER BY serverTime DESC - SELECT * FROM geofences; + SELECT * FROM geofences INSERT INTO geofences (name, description, area, attributes) - VALUES (:name, :description, :area, :attributes); + VALUES (:name, :description, :area, :attributes) @@ -260,56 +260,56 @@ description = :description, area = :area, attributes = :attributes - WHERE id = :id; + WHERE id = :id - DELETE FROM geofences WHERE id = :id; + DELETE FROM geofences WHERE id = :id - SELECT userId, geofenceId FROM user_geofence; + SELECT userId, geofenceId FROM user_geofence - INSERT INTO user_geofence (userId, geofenceId) VALUES (:userId, :geofenceId); + INSERT INTO user_geofence (userId, geofenceId) VALUES (:userId, :geofenceId) - DELETE FROM user_geofence WHERE userId = :userId AND geofenceId = :geofenceId; + DELETE FROM user_geofence WHERE userId = :userId AND geofenceId = :geofenceId - SELECT groupId, geofenceId FROM group_geofence; + SELECT groupId, geofenceId FROM group_geofence - INSERT INTO group_geofence (groupId, geofenceId) VALUES (:groupId, :geofenceId); + INSERT INTO group_geofence (groupId, geofenceId) VALUES (:groupId, :geofenceId) - DELETE FROM group_geofence WHERE groupId = :groupId AND geofenceId = :geofenceId; + DELETE FROM group_geofence WHERE groupId = :groupId AND geofenceId = :geofenceId - SELECT deviceId, geofenceId FROM device_geofence; + SELECT deviceId, geofenceId FROM device_geofence - INSERT INTO device_geofence (deviceId, geofenceId) VALUES (:deviceId, :geofenceId); + INSERT INTO device_geofence (deviceId, geofenceId) VALUES (:deviceId, :geofenceId) - DELETE FROM device_geofence WHERE deviceId = :deviceId AND geofenceId = :geofenceId; + DELETE FROM device_geofence WHERE deviceId = :deviceId AND geofenceId = :geofenceId - SELECT * FROM notifications; + SELECT * FROM notifications INSERT INTO notifications (userId, type, attributes) - VALUES (:userId, :type, :attributes); + VALUES (:userId, :type, :attributes) @@ -317,24 +317,24 @@ userId = :userId, type = :type, attributes = :attributes - WHERE id = :id; + WHERE id = :id - DELETE FROM notifications WHERE id = :id; + DELETE FROM notifications WHERE id = :id - DELETE FROM positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM devices); + DELETE FROM positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM devices) - SELECT * FROM attribute_aliases; + SELECT * FROM attribute_aliases INSERT INTO attribute_aliases (deviceId, attribute, alias) - VALUES (:deviceId, :attribute, :alias); + VALUES (:deviceId, :attribute, :alias) @@ -342,20 +342,20 @@ deviceId = :deviceId, attribute = :attribute, alias = :alias - WHERE id = :id; + WHERE id = :id - DELETE FROM attribute_aliases WHERE id = :id; + DELETE FROM attribute_aliases WHERE id = :id - SELECT * FROM statistics WHERE captureTime BETWEEN :from AND :to ORDER BY captureTime; + SELECT * FROM statistics WHERE captureTime BETWEEN :from AND :to ORDER BY captureTime INSERT INTO statistics (captureTime, activeUsers, activeDevices, requests, messagesReceived, messagesStored, attributes) - VALUES (:captureTime, :activeUsers, :activeDevices, :requests, :messagesReceived, :messagesStored, :attributes); + VALUES (:captureTime, :activeUsers, :activeDevices, :requests, :messagesReceived, :messagesStored, :attributes) -- cgit v1.2.3