SQL Execution Log Comparison for Database Error Diagnosis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Users face difficulties in determining the cause of errors when adding data to a database, as errors can be caused by various factors and are challenging to diagnose due to their complexity.

Innovation Solution

An information processing device is configured to communicate with a controller, storing SQL statements and their execution results as log data. It displays and allows correction of unsuccessful SQL statements, compares them with successful ones, and highlights data differences to assist in error diagnosis.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If SQL statements are executed to insert data into a database, then data collection and storage capability is improved, but error diagnosis difficulty increases due to various possible error causes

Engineering Contradiction:
Improvedata collection and storage capabilityVSAvoiderror diagnosis difficulty
Core Design Contradiction:
ProductivityVSDifficulty of detecting and measuring

Solution Approach 1:

The system performs preliminary actions by storing execution logs of SQL statements before errors occur. These logs contain the actual SQL statements executed, parameters used, and execution results. When an error occurs, users can retrieve these pre-stored logs to analyze what was executed, eliminating the need to reproduce the error conditions or manually trace through the data collection process.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary component (the log storage and retrieval system) between the SQL execution process and the user. This intermediary captures and stores execution details, then presents them to users in a structured format. The intermediary translates complex execution processes into readable log entries, making error diagnosis easier without changing the core data collection functionality.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Manufacturing precision

If SQL statements are corrected and re-executed, then data addition accuracy is improved, but time consumption increases due to manual error determination

Engineering Contradiction:
Improvedata addition accuracyVSAvoidtime consumption for error determination
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The system implements feedback by storing execution results and error information in logs that are made accessible to users. When an SQL statement fails, the log provides feedback about what was executed and what went wrong. Users can review this feedback, correct the SQL statement, and re-execute it. The log system continues to capture the corrected execution, providing ongoing feedback until success is achieved, thereby reducing the time needed for iterative correction.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11709826B2Control system, control method, and control program
Publication Date: 2023.07.25 OMRON CORP
  • US11709826B2 patent drawing
  • US11709826B2 patent drawing
  • US11709826B2 patent drawing

AI summary

A control system includes an information processing device that communicates with a controller that controls a control target. The controller or the information processing device include a storage device that stores one or more SQL statements to be executed and an execution result the one or more SQL statements in association with each other as log data. The information processing device includes a display controller that displays on a display an SQL statement to be corrected that has an unsuccessful execution result; an operation unit that accepts a correction operation on the SQL statement and an execution operation; and a communication interface that sends an execution instruction to execute the corrected SQL statement to the controller upon receipt of the execution operation and to receive an execution result of the corrected SQL statement from the controller. The display controller displays an execution result of the corrected SQL statement.