Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5A62F200D29 for ; Thu, 26 Oct 2017 08:52:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 58BA8160BF2; Thu, 26 Oct 2017 06:52:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9F5031609E8 for ; Thu, 26 Oct 2017 08:52:02 +0200 (CEST) Received: (qmail 20209 invoked by uid 500); 26 Oct 2017 06:52:01 -0000 Mailing-List: contact dev-help@polygene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@polygene.apache.org Delivered-To: mailing list dev@polygene.apache.org Received: (qmail 20187 invoked by uid 99); 26 Oct 2017 06:52:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2017 06:52:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6C37DC4B24 for ; Thu, 26 Oct 2017 06:52:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.481 X-Spam-Level: ** X-Spam-Status: No, score=2.481 tagged_above=-999 required=6.31 tests=[AC_DIV_BONANZA=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 4jS-_nH2mlmC for ; Thu, 26 Oct 2017 06:51:59 +0000 (UTC) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 03C545FBF6 for ; Thu, 26 Oct 2017 06:51:59 +0000 (UTC) Received: by mail-lf0-f66.google.com with SMTP id b190so2517531lfg.9 for ; Wed, 25 Oct 2017 23:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=hTKzICJmfdcBtsmk3pVV5NFA8JSPDqShsitmPDzNVaA=; b=X9gWIjXAFCPDezzNK8woflCv/MvAM5feh2ni9H1WtNdMQgfzXk4X8Qb1mf8poHToHS vYBXYnPmGfOJ5Dgg824TgfwTwrhooeexu9fwQLh8cJ/p0vH3Ypx0h4N54C+v1bpzoHn1 Lu7/ud9+24VSV0lpBC59iZR+XgM4lHScXPPi7zg3S5WmQmjRSLobuyubHvSF5P0W9Et1 6vjDV6UpJbd+4hNGapViGDnFVBfQqbBKOjrb8snhF0CKhtGASmYDWItfQ+IFaTObPAl6 grm8pr44fNx1iMobnEBGmyf9s/tXr1IjUH/cbzptZQFhmP0jrvNLxsA5HPvCHFdLur1J M5Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=hTKzICJmfdcBtsmk3pVV5NFA8JSPDqShsitmPDzNVaA=; b=BIfRVDBrMyaDhnb+dfdXDBQMilql9d1eLTqLeIc2YGxG9Tcxx2HzKHyGPCS1Y+Ci2n TPFPvTCpd/80knnh1qQVHv5IwF1CwTH/k/gLGhT2GsYGoBVUJQo94QwRMuRa4L4NtNNT jonQy7KwclmfpWu0VzRQve7AciZwxmKWl8BQhLNABbY7By9CAqsRbok1vB75C8faZMRg Xfe/9L+dGWYF2K589E8/+MRCRRVzAmLo8AMDIx3RKRQYr+NfzqDNocttQ8u5fIeV6Hq1 SrL2MIuvr9LcyQo+xhtzBmO2RIQd5fepd0NX1Vy+cK6A079cxzO4IRZXlzkwkxTBxqIb UhmA== X-Gm-Message-State: AMCzsaV/c329q2qmbTvU4FV76nwnj93iisPab8nWFR20JbQBT7Cx5BAa LE6RuR0SVf0/CYND9IKKy7eAQvM2hFMatHhDMiblSg== X-Google-Smtp-Source: ABhQp+S53HGG4cPy5jD3gyWWfaavmGLxkngf6wzyo8KTkuIf7mOrJz8Kwym5lGV0SbGpddKgCHq6Sx5KaeIHjq5f6Y4= X-Received: by 10.46.82.144 with SMTP id n16mr9315875lje.50.1509000717481; Wed, 25 Oct 2017 23:51:57 -0700 (PDT) MIME-Version: 1.0 Sender: hedhman@gmail.com Received: by 10.46.68.68 with HTTP; Wed, 25 Oct 2017 23:51:37 -0700 (PDT) From: Niclas Hedhman Date: Thu, 26 Oct 2017 14:51:37 +0800 X-Google-Sender-Auth: KH-Rnwn1Y_lLCX6Cfi5mJgtkpf4 Message-ID: Subject: SQL Entity Store progress... To: dev@polygene.apache.org Content-Type: multipart/alternative; boundary="001a113cc734bb3a70055c6d9bf9" archived-at: Thu, 26 Oct 2017 06:52:03 -0000 --001a113cc734bb3a70055c6d9bf9 Content-Type: text/plain; charset="UTF-8" Hi, I just want to give an update on this critical extension. The good news is that both test suites passes for Derby, H2, Postgres and SQLite. The bad news is that MySQL is not working, because JOOQ seems to generate the wrong SQL for table creation, or possibly is expecting some "mode" in MySQL that I don't know about. For all java.lang.String, it uses CHAR as the type; *create table if not exists `ENTITIES`( `_identity` char null, `_app_version` char null, `_value_id` char null, `_version` char null, `_type` char null, `_modified_at` timestamp null, `_created_at` timestamp null)* And those are simply 1 character in size. All my recent problems was related to adding debugging to figure out why this was happening, and digging a much deeper hole, as one is not allowed to wrap some types in JOOQ as types are (incorrectly) used to look for capabilities. I have raised that with the JOOQ people, and that will be addressed eventually. THIS issue is bizarre though, and I will try to work with JOOQ people to figure out if I am doing something wrong (hard to argue since 4 other dialects works and no code changes). There is one more bug, possibly in JOOQ; Derby supports SCHEMAs but if I use schema for Derby, then the tests fail with an SQL problem, saying *SQL [ select * from "POLYGENE"."ENTITIES" left outer join "POLYGENE"."TestEntity" on "_value_id" = "TestEntity"."_identity" where "ENTITIES"."_identity" = cast(? as varchar(32672))]; Column 'ENTITIES._identity' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE statement then 'ENTITIES._identity' is not a column in the target table.* Instead of fighting that, I am simply disabling Schema for Derby and let it use the default one. I think this is acceptable. MySQL and SQLite are also without Schema support. I will disable the MySQL test suite and push this to develop branch shortly. I hope others can help me put this through some heavy testing of other domain models and such, as we probably have holes in the test suites. Cheers -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java --001a113cc734bb3a70055c6d9bf9--