Skip to content

Instantly share code, notes, and snippets.

View dveeden's full-sized avatar

Daniël van Eeden dveeden

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dveeden
dveeden / mariadb_connector_j_testing.py
Created September 17, 2021 09:49
MariaDB Connector/J testing with TiDB v5.2.0 and Jython
#!/bin/jython
import sys
import java.util.Properties
import java.sql.SQLException
import org.mariadb.jdbc.Driver
# Test user setup:
#
# mysql-sql> create user 'test_native'@'%' identified with 'mysql_native_password' by 'test';
# Query OK, 0 rows affected (0.0778 sec)
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<div id="g1">g1</div>
<div id="g2">g2</div>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script>
var width = 960,
height = 300
@dveeden
dveeden / MySQL Bug Rate.ipynb
Created September 14, 2016 19:05
MySQL Bug Rate
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dveeden
dveeden / insert_features.py
Created March 12, 2016 11:18
Load citylots json
#!/bin/env python3
# Loads https://github.com/zemirco/sf-city-lots-json/blob/master/citylots.json into MySQL
# First wget the file (could have used requests.get...)
# This requires the MySQL 5.7 JSON support.
#
# Table layout:
# CREATE DATABASE json_test;
# USE json_test;
# CREATE TABLE `test_features` (
# `id` int(11) NOT NULL AUTO_INCREMENT,
diff --git a/client/mysql.cc b/client/mysql.cc
index bf54e1c..3b6f00e 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -1102,12 +1102,12 @@ static const char *embedded_server_groups[]=
HIST_ENTRY is defined for libedit, but not for the real readline
Need to redefine it for real readline to find it
*/
-#if !defined(HAVE_HIST_ENTRY)
+/* #if !defined(HAVE_HIST_ENTRY)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dveeden
dveeden / cext world bug.ipynb
Created December 26, 2015 09:47
Loading the world database with cext fails (MySQL Bug #79780)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.