SQL

SQL stands for structured query language. It uses commands such as "select", "insert", "update", "delete". Some common relational database management systems that use SQL are: Oracle, MySQL, Microsoft SQL Server, PostgreSQL, etc.
Here are 25,308 public repositories matching this topic...
Sometimes it is needed to store compressed data in the DB. Unfortunately not all the DBs have built-in compression and FUSE compressed FSes are not available for every OS. So it may make sense to store compressed binary blobs in the DB.
Unfortunately when one sees them in DBeaver he sees them compressed, but often they are needed uncompressed. So it'd be nice to have a feature to decompress the
If I create any model with
charset: 'utf8mb4', collate: 'utf8mb4_general_ci'
sequelize translates it to this for mysql
CREATE TABLE IF NOT EXISTS
tablename ... ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8mb4_general_ci;
On stepping through the code, it seems that the issu
Add basic CI
We already have some scripts in the scripts
directory. It would be good to run them for every PR.
This is also a great task for beginners.
## Python/Regex fix
There are several optimization the execution engine can perform when evaluating LIKE
patterns with %
, which matches zero or any number of any character. For example, see #80073.
Sequential %
s can prevent these optimizations, but they are semantically equivalent to a single %
, so the optimizer should normalize them to a single %
.
For example:
-- The following expressions
-
Updated
Jun 17, 2022 - C++
-
Updated
Jun 17, 2022 - C++
Bug Description
fix issues found by Coverity Scan in taosdump.c
To Reproduce
Steps to reproduce the behavior:
N/A
Expected Behavior
fix following issues found by Coverity Scan in taosdump.c
- String not null terminated High TDengine/src/kit/taos-tools/src/benchUtil.c postProceSql
- Resource leak High TDengine/src/kit/taos-tools/src/taosdump.c parse_json_to_recordschema
3
Describe the Bug
To Reproduce
Make sure you have a lot of rows in a table and then change the table spacing to compact.
Errors Shown
None
What version of Directus are you using?
9.8.0
What version of Node.js ar
Hi community,
This issue is for WeOpen-Star
We need to add more unit test for DatabaseTypeEngine.
- DatabaseTypeEngine#getProtocolType
- DatabaseTypeEngine#getStorageType
- DatabaseTypeEngine#getDefaultSchemaName
Currently we only support Upsert for CockroachDB. Implementing same for MySQL should be pretty straightforward as well.
Wonder if we can also use INSERT ON CONFLICT UPDATE for PostgreSQL to ensure operation with same signature also works.
-
Updated
Jun 17, 2022 - C
Describe the bug
Using a time dimension on a runningTotal measure on Snowflake mixes quoted and unquoted columns in the query. This fails the query, because Snowflake has specific rules about quoted columns. Specifically:
- All unquoted column names are treated as upper case
- Quoted column names are case sensitive.
So "date_from" <> date_from
To Reproduce
Steps to reproduce
Issue description
This option will improve performance in many scenarios
https://dev.mysql.com/worklog/task/?id=8134
https://www.facebook.com/weixiang.zhai/posts/678596755543802
-
Updated
Jun 17, 2022 - Go
-
Updated
Jun 13, 2022 - JavaScript
FEAT: IN operator
-
Updated
Jun 17, 2022 - C#
-
Updated
Jan 24, 2022 - Python
-
Updated
Jun 8, 2022 - Go
Scenario
A user is ingesting some data (~300M rows) into a table with 270K distinct symbol values. For each of these 270K symbols we end up with at least one posix_fallocate()
necessary to add a new value block. See the below flamegraph - it's quite illustrative.
An important part of the scenario is non-default index block capacity which is set to 2048. With the default capacity (w
-
Updated
Jun 10, 2022 - Jupyter Notebook
Quickstart review
- Missing information on how to create other databases
- Missing information on how to switch to other databases
- When using time travel, we don’t know where to get the transaction number from - we should show this to the user after committing data (this may be a missing capability in immudb / tools).
- The last long query example in the quick start is incorrect (incorrect
Enhancement