Skip to content

Instantly share code, notes, and snippets.

View schani's full-sized avatar
⌨️
I just sit at my computer and curse a bit.

Mark Probst schani

⌨️
I just sit at my computer and curse a bit.
View GitHub Profile
06:26:12.553 [JettyServerThreadPool-128] ERROR com.glideapps.jdbcgateway.Server - Uncaught exception when handling /query
org.jooq.exception.SQLDialectNotSupportedException: Type signed is not supported in dialect MYSQL
curl --location --request POST 'http://jdbc-gateway.staging.internal.glideapps.com/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"connectionInfo": {
"uri": "jdbc:mysql://mysql-test-1.mysql.database.azure.com/test?sslMode=REQUIRED",
"props": {
"user": "adminuser",
[1] [2023-08-13T10:55:34.223Z] ERROR (error-or.js:15) - Error 400 SQL [update `test`.`companies` set `test`.`companies`.`Date` = ? where `ID` = ?]; Data truncation: Incorrect date value: '2023-03-05T12:00:00.000Z' for column 'Date' at row 1
[1] [2023-08-13T11:03:21.788Z] ERROR (error-or.js:15) - Error 400 SQL [update `test`.`companies` set `test`.`companies`.`Datetime` = ? where `ID` = ?]; Data truncation: Incorrect datetime value: '2024-03-05T12:00:00.000Z' for column 'Datetime' at row 1
commit 618e4f19f47bb6473f15e70973fbb54ca7bb3cbc
Author: Mark Probst <mark.probst@gmail.com>
Date: Tue Sep 28 20:28:02 2021 -0400
Benchmark
diff --git a/functions/src/cli-routines/all-routines.ts b/functions/src/cli-routines/all-routines.ts
index f0d4f219dc..555077558d 100644
--- a/functions/src/cli-routines/all-routines.ts
+++ b/functions/src/cli-routines/all-routines.ts
<html>
<head>
<title>Game of Life</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<canvas id="canvas" width="300" height="300"></canvas>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
<!DOCTYPE html><html lang="en" style="overflow:hidden"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no,viewport-fit=cover"><meta name="theme-color" content="#000000"><link rel="apple-touch-icon" id="apple-touch-icon-placeholder"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="google-site-verification" content="c_kjzc6ibzAo9F9ILkH8tTMkiY353BxP4pUMrpMhcXM"><meta name="google" content="notranslate"><title>Inside Glide</title><link href="https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto:400,500,700,900&amp;display=swap" rel="stylesheet"><link rel="icon" type="image/png" href="https://firebasestorage.googleapis.com/v0/b/glide-staging.appspot.com/o/pwa-assets%2FE6caTFQNaRWQ157Zrfho-favicon-16.png?alt=media" sizes="16x16"><link rel="icon" type="image/png" href="https://firebasestorage.googleapis.com/v0/b/glide-staging.appspot.com/o/pwa-asset
// To parse this data:
//
// import { Convert, ProtocolMessage, Request, Event, Response, ErrorResponse, InitializedEvent, StoppedEvent, ContinuedEvent, ExitedEvent, TerminatedEvent, ThreadEvent, OutputEvent, BreakpointEvent, ModuleEvent, LoadedSourceEvent, ProcessEvent, CapabilitiesEvent, RunInTerminalRequest, RunInTerminalRequestArguments, RunInTerminalResponse, InitializeRequest, InitializeRequestArguments, InitializeResponse, ConfigurationDoneRequest, ConfigurationDoneResponse, LaunchRequest, LaunchRequestArguments, LaunchResponse, AttachRequest, AttachRequestArguments, AttachResponse, RestartRequest, RestartResponse, DisconnectRequest, DisconnectArguments, DisconnectResponse, TerminateRequest, TerminateArguments, TerminateResponse, SetBreakpointsRequest, SetBreakpointsArguments, SetBreakpointsResponse, SetFunctionBreakpointsRequest, SetFunctionBreakpointsArguments, SetFunctionBreakpointsResponse, SetExceptionBreakpointsRequest, SetExceptionBreakpointsArguments, SetExceptionBreakpointsResponse, Continue
In file included from main.cpp:6:0:
TopLevel.hpp: In function 'void nlohmann::from_json(const json&, quicktype::BarcelonaHawaiianMonkSeal&)':
TopLevel.hpp:3944:94: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'const char*' for argument '2' to 'nlohmann::json quicktype::get_untyped(const json&, const char*)'
_x.set_nonbookish( quicktype::get_untyped(_j, quicktype::Utf8FromUtf16(L"nonbookish")));
^
TopLevel.hpp: In function 'void nlohmann::to_json(nlohmann::json&, const quicktype::BarcelonaHawaiianMonkSeal&)':
TopLevel.hpp:3951:101: error: no matching function for call to 'Utf16FromUtf8(const wstring&)'
_j[quicktype::Utf8FromUtf16(L"disdiapason")] = quicktype::Utf16FromUtf8(_x.get_disdiapason());
^
In file included from main.cpp:6:0:
diff -Naur /tmp/tmp.JgQbRnLgcP/cplusplus/test/inputs/json/samples/pokedex/TopLevel.hpp /tmp/tmp.wYD9u6A3yU/cplusplus/test/inputs/json/samples/pokedex/TopLevel.hpp
--- /tmp/tmp.JgQbRnLgcP/cplusplus/test/inputs/json/samples/pokedex/TopLevel.hpp 2018-11-06 16:47:56.000000000 +0000
+++ /tmp/tmp.wYD9u6A3yU/cplusplus/test/inputs/json/samples/pokedex/TopLevel.hpp 2018-11-08 01:40:36.000000000 +0000
@@ -14,6 +14,7 @@
#include <boost/optional.hpp>
#include <stdexcept>
#include <regex>
+
namespace nlohmann {
template <typename T>