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 24,335 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
Working on a project I ran into the documentation for customizing the Foreign Key.
The docs read:
// https://sequelize.org/master/manual/assocs.html
// For example, to use UUID as the foreign key data type instead of the default (INTEGER), you can simply do:
const { DataTypes } = require("Sequelize");
Foo.hasOne(Bar, {
foreignKey: {
// name: 'myFooId'
type: D
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
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
-
Updated
May 12, 2022 - C++
-
Updated
May 11, 2022 - C++
In https://github.com/taosdata/TDengine/blob/develop/src/client/src/tscPrepare.c, Local variable loopCont is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make loopCont not remain constant.
So the 1567th line should be removed.
.
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
May 12, 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
May 12, 2022 - Go
-
Updated
May 3, 2022 - JavaScript
-
Updated
May 12, 2022 - C#
FEAT: IN operator
-
Updated
Jan 24, 2022 - Python
-
Updated
May 11, 2022 - Go
Describe the Bug
The JSON response sent back over HTTP doesn't encode certain characters correctly.
For example, if a value in a string column contains the char \1
the byte value is copied verbatim in the response, breaking the client:
>>> json.loads('"\1"')
...
json.decoder.JSONDecodeError: Invalid control character at: line 1 column 2 (char 1)
Instead, we shou
-
Updated
May 5, 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
-
Updated
May 11, 2022 - Python
Enhancement