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 21,092 public repositories matching this topic...
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: DSometimes 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
Forked from #72227 (initially reported by @amitsadaphule )
Describe the problem
The expected output in the test TestAnonymizeStatementsForReporting (conn_executor_test.go) is overly prescriptive as to the result of formatting an error containing a redacted statement.
Namely, it has particular requirements about how the stack trace is formatted.
This is unnecessary for the test, w
-
Updated
Dec 25, 2021 - C++
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
Dec 25, 2021 - C++
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.
Some changes in #14243 and broken the test case MySQLDataSourcePreparerTest, please mock and fix it.
-
Updated
Dec 23, 2021 - 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
When I try to connect dolt server using golang's go-sql-driver/mysql driver in multiple heads mode, It seems that go-sql-driver/mysql driver does't support database with a sub name. DSN string format in go-sql-driver/mysql like [username[:password]@][protocol[(address)]]/dbname[?param1=value1&...¶mN=valueN]. When dbname is "mydb", It works, but not work when dbname is "mydb/feature-branch".
-
Updated
Sep 30, 2021 - JavaScript
This would allow the CLI to try connecting to a different node is the first node goes down.
-
Updated
Nov 30, 2021 - Python
Hi,
my admin portal looks like this :
Version
- Server Installed 1.38.4
- Server Latest 1.38.4
- Web Installed -
- Web Latest 2.17.1
It seems that, at some point, 'GetInstalledWebVersion()' in 'Admin.dll' is called? Could anyone help me understand what do I need to check, to fix this?
FEAT: IN operator
-
Updated
Dec 24, 2021 - Go
Describe the bug
No response
To reproduce
create table pricetable2
(ts timestamp,symbolname SYMBOL CACHE ,price Double,aggregateTradeId Long,firstTradeId Long,lastTradeId Long,buyerMaker Boolean,qty Double)
partition by day;
Executes without error and crates table without designated timestamp partitioned by DAY
Expected Behavior
Create table query should fail. Pa
-
Updated
Dec 25, 2021 - Go
-
Updated
Dec 24, 2021 - C#
-
Updated
Dec 9, 2021 - Jupyter Notebook
-
Updated
Dec 16, 2021 - Python

Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
CREATE DATABASE IF NOT EXISTS
tispark_test;CREATE TABLE IF NOT EXISTS
tispark_test.table_test(i int, s varchar(128));CREATE ROLE IF NOT EXISTS 'test_read', 'test_write';
GRANT SELECT ON
tispark_test.table_testTO 'test_read'@'%';GRANT UPDATE ON `tispa