Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-10-20 14:14:09

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,259
GitHub

PR #448 on GitHub

github.com/textpattern/textpattern/pull/448

Hi devs.
I’d be grateful for some feedback or a merge/decline on the above, please. I have a few more PRs that I’m working on that, for some reason, insist in being merged into this PR. I’m sticking to one commit per PR because it’s clearer and, I assume, easier to manage from a merge point of view.

Thanks very much.

Offline

#2 2014-10-20 15:37:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: PR #448 on GitHub

Feedback posted. Sorry about the multiple after-market edits to the post. Hit tab by mistake at one point without noticing and my next space character submitted the form in a part-finished state. Ugh.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2014-10-20 17:01:51

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,259
GitHub

Re: PR #448 on GitHub

Cheers, Stef – thanks.

Offline

#4 2014-10-21 06:55:45

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: PR #448 on GitHub

VARCHAR ( 45 ) doesn’t save space compared to VARCHAR ( 255 ). Both use 1 byte (length, 3 bytes if utf8) + the actual length of the content stored. You could use CHAR ( 45 ), but then you waste space when storing IPv4 adresses.

Offline

#5 2014-10-21 07:59:25

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: PR #448 on GitHub

ruud wrote #284998:

VARCHAR ( 45 ) doesn’t save space compared to VARCHAR ( 255 ).

Quite true, I’d forgotten that. Perhaps it’s just my mild OCD gene that makes me want to have all fields that hold the same type of data to have the same width.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB